Loads all variables from the
UnityEngine.PlayerPrefsobject into the Dialogue Runner's variable storage.
public bool LoadStateFromPlayerPrefs(string SaveKey = "YarnBasicSave")
This method loads a string containing JSON from the
UnityEngine.PlayerPrefsobject under the key
SaveKey, deserializes that JSON, and then uses the resulting object to set all variables in VariableStorage.
trueif the variables were successfully loaded from the player preferences;
- 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.