DialogueRunner
Class in Yarn.Unity
Inherits from UnityEngine.MonoBehaviour
Summary
Fields
Whether the dialogue runner will immediately start running dialogue after loading.
A Unity event that is called once the dialogue has completed.
A Unity event that is called when the dialogue starts running.
A Unity event that is called when a node is complete.
A Unity event that is called when a node starts running.
The name of the node that will start running immediately after loading.
Methods
Adds a command handler. Dialogue will pause execution after the command is called.
Adds a command handler. Dialogue will pause execution after the command is called.
Add a new function that returns a value, so that it can be called from Yarn scripts.
Creates a stack of typewriter pauses to use to temporarily halt the typewriter effect.
Loads all variables from the requested file in persistent storage into the Dialogue Runner's variable storage.
Loads all variables from the UnityEngine.PlayerPrefs
object into the Dialogue Runner's variable storage.
Removes a command handler.
Remove a registered function.
Requests that all dialogue views speed up their delivery of the current line.
Requests that all dialogue views stop showing the current line, and prepare to show the next piece of content.
Saves all variables from variable storage into the persistent storage.
Saves all variables in the Dialogue Runner's variable storage into the UnityEngine.PlayerPrefs
object.
Sets the dialogue runner's Yarn Project.
Splits input into a number of non-empty sub-strings, separated by whitespace, and grouping double-quoted strings into a single sub-string.
Starts running a node of dialogue.
Stops the dialogue immediately, and cancels any currently running dialogue views.
Properties
Gets or sets the collection of dialogue views attached to this dialogue runner.
Gets a value that indicates if the dialogue is actively running.
Gets the VariableStorage that this dialogue runner uses to store and access Yarn variables.
Last updated