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

DefaultVariable Class

A default value to apply when the object wakes up, or when ResetToDefaults is called.

[Serializable]
public class DefaultVariable

Fields

Name Description
name The name of the variable.
type The type of the variable.
value The value of the variable, as a string.

Source

Defined in Unity/Assets/YarnSpinner/Scripts/InMemoryVariableStorage.cs, line 63.