This site is for Yarn Spinner v1, and won't be updated. Go to the current site.

VariableStorage Interface

Provides a mechanism for storing and retrieving instances of the Value class.

public interface VariableStorage

Methods

Name Description
Clear() Removes all variables from storage.
GetValue(String) Retrieves a Value by name.
SetValue(String, Boolean) Stores a bool as a Value.
SetValue(String, Single) Stores a float as a Value.
SetValue(String, String) Stores a string as a Value.
SetValue(String, Value) Stores a Value.

Source

Defined in YarnSpinner/Dialogue.cs, line 171.