SaveStateToPlayerPrefs(string)
Last updated
Was this helpful?
Method in DialogueRunner
Saves all variables in the Dialogue Runner's variable storage into the PlayerPrefs object.
public void SaveStateToPlayerPrefs(string SaveKey = "YarnBasicSave")This method serializes all variables in VariableStorage into a string containing JSON, and then stores that string in the PlayerPrefs object under the key SaveKey.
The stored information can be restored via the LoadStateFromPlayerPrefs(string) method.
string SaveKey
The key to use when storing the variables.
VariableStorageBehaviour.GetAllVariables(): Provides a unified interface for exporting all variables. Intended to be a point for custom saving, editors, etc.
Last updated
Was this helpful?
Was this helpful?
