All pages
Powered by GitBook
1 of 1

Loading...

LoadStateFromPlayerPrefs(string)

Method in DialogueRunner

Summary

Loads all variables from the PlayerPrefs object into the Dialogue Runner's variable storage.

Remarks

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 .

The loaded information can be stored via the method.

Parameters

Name
Description

Returns

true if the variables were successfully loaded from the player preferences; false otherwise.

See Also

  • VariableStorageBehaviour.SetAllVariables(Dictionary<string, float>, Dictionary<string, string>, Dictionary<string, bool>, bool)

public bool LoadStateFromPlayerPrefs(string SaveKey = "YarnBasicSave")

string SaveKey

The key to use when storing the variables.

VariableStorage
SaveStateToPlayerPrefs(string)