Cloud Save

Attention: The Digital Services Act (DSA) requires Unity to notify our customers’ end users if Unity takes an action which impacts those end users under the DSA. To comply with this requirement, if you use Unity Gaming Services (UGS) products that rely on the Unity Authentication Service, you must integrate the notification API by the effective date of the DSA: February 17, 2024. The notification API is ready for adoption in late January 2024.

For more information on DSA, refer to the Digital Services Act - compliance update.

To make your game compliant, refer to DSA notifications.

You can use Unity's Cloud Save service to save player data, such as game progress, inventories, or metadata. Because it's cloud based, players can access their data anywhere and across devices, which can mitigate data loss when a player changes devices or re-installs a game.

You can define who can read and write data in Cloud Save (for example, all players, a particular player, or only server side code) and you can read and write to it from Cloud Code, and even configure Triggers to run code when properties change.

In addition to storing player data, you can also store data that is not bound to any player, such as data for an NPC or the state of an item in the world, or to implement features such as guilds/clans, inventories, quest systems, achievements, auction houses.

Concepts

  • Player Data for player data
  • Game Data for non-player game data (e.g. NPCs, entities, game state)
  • Player Files for save game data in any format
  • Queries to make data stored in Cloud Save searchable
  • Cloud Code integration (For example, run Cloud Code Triggers when data changes.)
  • Access Classes allow you to control what data players can read and write

Get started

The Get started guide explains how to add Cloud Save to your Unity project.

The Unity SDK tutorial has examples of how to use Cloud Save with Unity.

Additional resources

Download the Unity Gaming Services Samples project to learn how to solve common game development challenges with Cloud Save: