SaveStateToPlayerPrefs(string)

Method in DialogueRunner

Summary

Saves all variables in the Dialogue Runner's variable storage into the PlayerPrefs object.

public void SaveStateToPlayerPrefs(string SaveKey = "YarnBasicSave")

Remarks

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.

Parameters

See Also

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.