Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

IVariableStorage

Provides a mechanism for storing values.
public interface IVariableStorage : IVariableAccess

Implements Yarn.IVariableAccess

#Methods

#Clear()

Removes all variables from storage.
void Clear();

#SetValue(string, bool)

Stores a bool in this VariableStorage.
void SetValue(string variableName, bool boolValue);

Parameters

  • variableNamestring
    The name to associate with this variable.
  • boolValuebool
    The boolean value to store.

#SetValue(string, float)

Stores a float in this VariableStorage.
void SetValue(string variableName, float floatValue);

Parameters

  • variableNamestring
    The name to associate with this variable.
  • floatValuefloat
    The number to store.

#SetValue(string, string)

Stores a string in this VariableStorage.
void SetValue(string variableName, string stringValue);

Parameters

  • variableNamestring
    The name to associate with this variable.
  • stringValuestring
    The string to store.

Generated from Yarn Spinner for Unity 3.3.