SetAllVariables(System.Collections.Generic.Dictionary<string,float>,System.Collections.Generic.Dicti

Method in VariableStorageBehaviour

Summary

Provides a unified interface for loading many variables all at once. Will override anything already in the variable storage.

public abstract void SetAllVariables(System.Collections.Generic.Dictionary<string, float> floats, System.Collections.Generic.Dictionary<string, string> strings, System.Collections.Generic.Dictionary<string, bool> bools, bool clear = true);

Parameters

NameDescription

bool clear

Should the load also wipe the storage. Defaults to true so all existing variables will be cleared.

System.Collections.Generic.Dictionary<string, float> floats

System.Collections.Generic.Dictionary<string, string> strings

System.Collections.Generic.Dictionary<string, bool> bools

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.