VariableStorageBehaviour

Class in Yarn.Unity

Inherits from MonoBehaviour

Summary

A MonoBehaviour that a DialogueRunner uses to store and retrieve variables.

public abstract class VariableStorageBehaviour : MonoBehaviour, Yarn.IVariableStorage

Remarks

This abstract class inherits from MonoBehaviour , which means that subclasses of this class can be attached to GameObject s.

Methods

NameDescription

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.

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.