SaveStateToPlayerPrefs(string)
Last updated
Was this helpful?
Last updated
Was this helpful?
Method in
This method is obsolete and may be removed from a future version of Yarn Spinner: SaveStateToPlayerPrefs is deprecated, please use SaveStateToPersistentStorage instead.
Saves all variables in the Dialogue Runner's variable storage into the UnityEngine.PlayerPrefs
object.
This method serializes all variables in into a string containing JSON, and then stores that string in the UnityEngine.PlayerPrefs
object under the key SaveKey
.
The stored information can be restored via the method.
string
SaveKey
The key to use when storing the variables.
: Provides a unified interface for exporting all variables. Intended to be a point for custom saving, editors, etc.