Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Method in VariableStorageBehaviour
Provides a unified interface for exporting all variables. Intended to be a point for custom saving, editors, etc.
Class in Yarn.Unity
Inherits from MonoBehaviour
A MonoBehaviour
that a DialogueRunner uses to store and retrieve variables.
This abstract class inherits from MonoBehaviour
, which means that subclasses of this class can be attached to GameObject
s.
Name | Description |
---|---|
Method in VariableStorageBehaviour
Returns a boolean value representing if a particular variable is inside the variable storage.
Name | Description |
---|---|
true
if this variable storage contains a value for the variable named variableName
; false
otherwise.
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.
string
variableName
The name of the variable to check for.
Method in VariableStorageBehaviour
Provides a unified interface for loading many variables all at once. Will override anything already in the variable storage.
Name | Description |
---|---|
string
variableName
bool
boolValue
string
variableName
string
stringValue
string
variableName
T
result
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
string
variableName
float
floatValue