본문으로 건너뛰기

Useful Events and Delegates

Our plugin has various events and delegates that will be triggered on certain situations. In this document, We provide a list for them!

You can easily find the real usages of each events and delegates in the official plugin assets. Take a look into them if you need any references.


Dialogue Widget Base

Delegates

Native NameDisplay NameDescription
Dele_OnDialogueWidgetBeginOnDialogueWidgetBeginTriggered when the dialogue widget is constructed. Triggered earlier than ManagerFragmentBeginPlay.
Dele_OnDialogueWidgetEndOnDialogueWidgetEndTriggered when the dialogue widget is destructed. Triggered earlier than ManagerFragmentEndPlay.
Native NameDisplay NameDescription
Dele_OnDialogueWidgetPopulatedOnDialogueWidgetPopulatedTriggered whenever the dialogue widget flushed and reconstructed its component layout. It will be usaully triggered when the widget moves to the next node or the function UpdateWidgetFromCurrentNode() is manually called.
Native NameDisplay NameDescription
Dele_OnNextNodePlayedOnNextNodePlayedTriggered whenever the widget moved to the next node. It will not be triggered when the first node get played.
Dele_OnNodePlayedOnNodePlayedTriggered whenever a node has been set as the node the widget is currently playing. Triggered after the fragment's BeginPlay event.
Dele_OnNodeEndedOnNodeEndedTriggered before the widget moves to the next node. Triggered after the fragment's BeginPlay event.
Native NameDisplay NameDescription
Dele_OnTextUpdateStartedOnTextUpdateStartedTriggered when the dialgoue widget's text update has been started.
Dele_OnTextUpdateFinishedOnTextUpdateFinishedTriggered when the dialgoue widget's text update has been finished. It will be triggered only when the update is fully finished and succeeded to display the whole text without interruption.
Dele_OnTextUpdatedOnTextUpdatedTriggered whenever a new character shows up by the text update of the widget.
Dele_OnTextSkippedOnTextSkippedTriggered whenever widget performed context skip. (Displaying a bunch of text left to display at once.)
Native NameDisplay NameDescription
Dele_OnInlineCommandTriggeredOnInlineCommandTriggeredTriggered whenever an inline command has been triggered.
Native NameDisplay NameDescription
Dele_OnDialogueWidgetBeginOnDialogueWidgetBeginTriggered when the dialogue widget is constructed. Triggered earlier than ManagerFragmentBeginPlay.
Dele_OnDialogueWidgetEndOnDialogueWidgetEndTriggered when the dialogue widget is destructed. Triggered earlier than ManagerFragmentEndPlay.

Events

Those will be triggered right after the delegate that shares same Display Name be triggered.

Those exists for the blueprint extensibility, and should not be triggered manually in the other external resources.

Native NameDisplay NameDescription
K2_OnDialogueWidgetBeginOnDialogueWidgetBeginTriggered when the dialogue widget is constructed. Triggered earlier than ManagerFragmentBeginPlay.
K2_OnDialogueWidgetEndOnDialogueWidgetEndTriggered when the dialogue widget is destructed. Triggered earlier than ManagerFragmentEndPlay.
Native NameDisplay NameDescription
K2_OnDialogueWidgetPopulatedOnDialogueWidgetPopulatedTriggered whenever the dialogue widget flushed and reconstructed its component layout. It will be usaully triggered when the widget moves to the next node or the function UpdateWidgetFromCurrentNode() is manually called.
Native NameDisplay NameDescription
K2_OnNextNodePlayedOnNextNodePlayedTriggered whenever the widget moved to the next node. It will not be triggered when the first node get played.
K2_OnNodePlayedOnNodePlayedTriggered whenever a node has been set as the node the widget is currently playing. Triggered after the fragment's BeginPlay event.
K2_OnNodeEndedOnNodeEndedTriggered before the widget moves to the next node. Triggered after the fragment's BeginPlay event.
Native NameDisplay NameDescription
K2_OnTextUpdateStartedOnTextUpdateStartedTriggered when the dialgoue widget's text update has been started.
K2_OnTextUpdateFinishedOnTextUpdateFinishedTriggered when the dialgoue widget's text update has been finished. It will be triggered only when the update is fully finished and succeeded to display the whole text without interruption.
K2_OnTextUpdatedOnTextUpdatedTriggered whenever a new character shows up by the text update of the widget.
K2_OnTextSkippedOnTextSkippedTriggered whenever widget performed context skip. (Displaying a bunch of text left to display at once.)
Native NameDisplay NameDescription
K2_OnInlineCommandTriggeredOnInlineCommandTriggeredTriggered whenever an inline command has been triggered.

Speech Bubble Widget Handled

Events

Native NameDisplay NameDescription
K2_OnDialogueWidgetModeChangedOn Dialogue Widget Mode ChangedTriggered whenever the mode of the speech bubble widget rendering has been changed.

Dialogue Node Base

Events

Native NameDescription
OnNodeBeginPlayTriggered whenever this node has been set as the node the widget is currently playing. Triggered after the fragment's BeginPlay event.
OnNodeEndPlayTriggered before the widget moves to the next node. Triggered after the fragment's BeginPlay event.

Select Node

Delegates

Native NameDisplay NameDescription
Dele_OnAnswerButtonsPopulatedOnAnswerButtonsPopulatedTriggered when the answer button has been populated.

Fragment

Events

Native NameDescription
OnFragmentBeginPlayTriggered whenever this fragment's parent object has been Begin-played. Visit Trying Out Dialogue Fragments for the detailed explanation
OnFragmentEndPlayTriggered whenever this fragment's parent object has been End-Played. Visit Trying Out Dialogue Fragments for the detailed explanation

Simple Dialogue Subsystem

Delegates

Native NameDescription
OnDialogueBeginTriggered whenever a new dialogue played. This delegate will not be triggered at the beginning of the world.
OnDialogueEndTriggered whenever a dialogue ended. This delegate will not be triggered at the beginning of the world.