CREATE YOUR WORLD
Data Storage

PlayerPrefs - Saving data to the device

1min

Provides the ability to save players to the device they are connecting to. It can be called from the client ZEPETO Script, and data will not be preserved if you delete the app or change the device.

It supports use in the same way as PlayerPrefs in Unity, and the storage capacity is limited to 10KB.



▼ Example code for checking the number of plays using the Save & Load function

TypeScript


📘 View Unity PlayerPrefs information https://docs.unity3d.com/ScriptReference/PlayerPrefs.html