SaveToPlayerPrefs(string)

Method in InMemoryVariableStorage

Summary

Serialize all variables to JSON, then save data to Unity's built-in PlayerPrefs under playerPrefsKey parameter.

public void SaveToPlayerPrefs(string playerPrefsKey)

Parameters

Name
Description

string playerPrefsKey

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.