Method in DialogueRunner
Loads all variables from the UnityEngine.PlayerPrefs
object into the Dialogue Runner's variable storage.
This method loads a string containing JSON from the UnityEngine.PlayerPrefs
object under the key SaveKey
, deserializes that JSON, and then uses the resulting object to set all variables in VariableStorage.
The loaded information can be stored via the SaveStateToPlayerPrefs(string) method.
true
if the variables were successfully loaded from the player preferences; false
otherwise.
VariableStorageBehaviour.SetAllVariables(FloatDictionary,StringDictionary,BoolDictionary,bool): Provides a unified interface for loading many variables all at once. Will override anything already in the variable storage.
Name | Description |
---|---|
string
SaveKey
The key to use when storing the variables.