Yarn Spinner
2.2 (Current)
Search…
⌃K
Links

SetNode(string)

Method in Dialogue

Summary

Prepares the Dialogue that the user intends to start running a node.
public void SetNode(string startNode = DefaultStartNodeName)

Remarks

After this method is called, you call Continue() to start executing it.
If PrepareForLinesHandler has been set, it may be called when this method is invoked, as the Dialogue determines which lines may be delivered during the startNode node's execution.

Parameters

Name
Description
string startNode
The name of the node that will be run. The node have been loaded by calling SetProgram(Program) or AddProgram(Program) .