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

MemoryVariableStore Class

A simple concrete subclass of BaseVariableStorage that keeps all variables in memory.

public class MemoryVariableStore : BaseVariableStorage, VariableStorage

Methods

Name Description
Clear() Removes all variables from storage.
GetValue(String) Retrieves a Value by name.
SetValue(String, Value) Stores a Value.

Source

Defined in YarnSpinner/Dialogue.cs, line 267.