Method in IActionRegistration
Add a new function that returns a value, so that it can be called from Yarn scripts.
When this function has been registered, it can be called from your Yarn scripts like so:
The call
command can also be used to invoke the function:
string
name
The name of the function to add.
Delegate
implementation
The System.Delegate
that should be invoked when this function is called.
Library: A collection of functions that can be called from Yarn programs.
Method in
Adds a command handler. Dialogue will pause execution after the command is called.
When this command handler has been added, it can be called from your Yarn scripts like so:
If handler
is a method that returns a UnityEngine.Coroutine
, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.
If handler
is a method that returns an System.Collections.IEnumerator
, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.
Method in
Adds a command handler. Dialogue will pause execution after the command is called.
When this command handler has been added, it can be called from your Yarn scripts like so:
If handler
is a method that returns a UnityEngine.Coroutine
, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.
If handler
is a method that returns an System.Collections.IEnumerator
, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.
string
commandName
The name of the command.
Delegate
handler
The CommandHandler that will be invoked when the command is called.
string
commandName
The name of the command.
handler
The CommandHandler that will be invoked when the command is called.
commandName
The name of the command.
MethodInfo
methodInfo
The method that will be invoked when the command is called.
Method in IActionRegistration
Removes a command handler.
string
commandName
The name of the command to remove.
Interface in Yarn.Unity
Contains methods that allow adding and removing Yarn commands and functions.
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.
Removes a command handler.
Remove a registered function.
Method in IActionRegistration
Remove a registered function.
After a function has been removed, it cannot be called from Yarn scripts.
string
name
The name of the function to remove.
IActionRegistration.AddFunction(string,Delegate): Add a new function that returns a value, so that it can be called from Yarn scripts.