User Data
Last updated
Last updated
Store and manage player data to enhance gameplay experience and retain progress.
There are two types of storage: local_storage
and platform_internal
. When writing to local storage, data is saved on the player's device. When writing to internal storage, data is saved on the platform's servers.
If you need to call storage methods in a sequence, make sure you wait for previous call to finish, so there is no potential data collisions.
Identify the default storage type to understand where data is being saved (local or server).
Possible values: local_storage
, platform_internal
.
Verify if the specified storage type is supported on the platform to ensure compatibility.
Check if the specified storage type is currently available for use to manage data storage effectively.
Retrieve stored data based on a key or multiple keys to restore player progress or settings.
Save data to the specified storage with a key to retain player progress or settings.
Remove data from the specified storage by key to manage player data and settings effectively.
All data operations interact with the default storage type. You can specify the storage type as the second argument. Ensure the storage is supported and available before using it.