User Data

Store and manage player data to enhance gameplay experience and retain progress.

There are two types of storage: LocalStorage and PlatformInternal. 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.

circle-exclamation

Default Storage Type

Identify the default storage type to understand where data is being saved (local or server).

PlaygamaBridge::DefaultStorageType()

Used automatically if a specific type is not specified when working with data. Possible values: LocalStorage, PlatformInternal.

Support Check

Verify if the specified storage type is supported on the platform to ensure compatibility.

chevron-rightCopy This Examplehashtag

Ensure the platform supports the required features and storage types for proper functionality.

Storage Accessibility Check

Check if the specified storage type is currently available for use to manage data storage effectively. Possible values: true, false.

chevron-rightCopy This Examplehashtag

Load Data

Retrieve stored data based on a key or multiple keys to restore player progress or settings.

circle-info

If you need data in JSON format, use the PlaygamaBridge::StorageDataKeyAsJSON("key_1") expression.

chevron-rightCopy This Examplehashtag

Save Data

Save data to the specified storage with a key to retain player progress or settings.

chevron-rightCopy This Examplehashtag

Delete Data

Remove data from the specified storage by key to manage player data and settings effectively.

chevron-rightCopy This Examplehashtag

Last updated