DialogueUIBehaviour.NodeComplete Method

Called by the DialogueRunner to signal that the end of a node has been reached.

public virtual Dialogue.HandlerExecutionType NodeComplete(string nextNode, Action onComplete)

Remarks

This method may be called multiple times before DialogueComplete() is called.

If this method returns ContinueExecution, do not call the onComplete method.

Parameters

Parameter Description
string nextNode The name of the next node that is being entered.
Action onComplete A method that should be called to indicate that the DialogueRunner should continue executing.

Return Type

Dialogue.HandlerExecutionType: PauseExecution if dialogue should wait until the completion handler is called before continuing execution; ContinueExecution if dialogue should immediately continue running after calling this method.

Source

Defined in Unity/Assets/YarnSpinner/Scripts/DialogueRunner.cs, line 1153.