Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Class in Yarn.Unity
Inherits from UnityEngine.MonoBehaviour
A UnityEngine.MonoBehaviour
that a DialogueRunner uses to store and retrieve variables.
This abstract class inherits from UnityEngine.MonoBehaviour
, which means that subclasses of this class can be attached to UnityEngine.GameObject
s.
Name | Description |
---|---|
Returns a boolean value representing if a particular variable is inside the variable storage.
Provides a unified interface for exporting all variables. Intended to be a point for custom saving, editors, etc.
Provides a unified interface for loading many variables all at once. Will override anything already in the variable storage.
Method in VariableStorageBehaviour
Provides a unified interface for loading many variables all at once. Will override anything already in the variable storage.
Name | Description |
---|---|
Method in
bool
clear
Should the load also wipe the storage. Defaults to true so all existing variables will be cleared.
System.Collections.Generic.Dictionary<string, float>
floats
System.Collections.Generic.Dictionary<string, string>
strings
System.Collections.Generic.Dictionary<string, bool>
bools
Method in VariableStorageBehaviour
Provides a unified interface for exporting all variables. Intended to be a point for custom saving, editors, etc.
Name | Description |
---|---|
Name | Description |
---|---|
Method in
Name | Description |
---|
Method in
Name | Description |
---|
string
variableName
string
stringValue
string
variableName
T
result
|
|
|
|
Method in VariableStorageBehaviour
Returns a boolean value representing if a particular variable is inside the variable storage.
true
if this variable storage contains a value for the variable named variableName
; false
otherwise.
Name | Description |
---|---|
string
variableName
The name of the variable to check for.