LoadStateFromPlayerPrefs(string)
Summary
public bool LoadStateFromPlayerPrefs(string SaveKey = "YarnBasicSave")Remarks
Parameters
Name
Description
Returns
See Also
Last updated
Was this helpful?
Method in DialogueRunner
Loads all variables from the PlayerPrefs object into the Dialogue Runner's variable storage.
public bool LoadStateFromPlayerPrefs(string SaveKey = "YarnBasicSave")This method loads a string containing JSON from the 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.
string SaveKey
The key to use when storing the variables.
true if the variables were successfully loaded from the player preferences; false otherwise.
VariableStorageBehaviour.SetAllVariables(Dictionary<string, float>, Dictionary<string, string>, Dictionary<string, bool>, bool)
Last updated
Was this helpful?
Was this helpful?
