title_player_account, master_player_account, and character). Use it to store game progress, preferences, and other information tied to an individual player.
Player Data is one of several storage features in PlayFab, each scoped to a different entity type. For a comparison, see Entity Objects.
Storage options
PlayFab provides two ways to store player data:- Entities: Allows you to store data in objects and files across Players, Characters, and Groups.
- Player Data/UserData: Allows you to store Key/Value pair data for players.
- Client: This is player data that’s available to your title client to read and update. You use the client APIs UpdateUserData to create, update, or delete and GetUserData to read data for the player.
- Read Only: This is player data that’s created or updated by your server. Your title client can read, but not update, this data. You use the server API UpdateUserReadOnlyData to create, update, or delete and the client API GetUserReadOnlyData to read title-specific data for the player. This data is visible to the player, but can only be modified by the server.
- Internal: This is player data that’s only available to your server. You use the server APIs UpdateUserInternalData to create, update, or delete and GetUserInternalData to read title-specific data for the player. This data is server-only, and can’t be seen by the client.
Permission value to Public when you write the data.
Player data vs player publisher data
Player data is player information that’s specific to a game title. It should be used for title-specific information - such as saving your player’s position in a dungeon, or other game-specific data. Player Publisher data is associated with a player’smaster_player_account in the namespace rather than with a title_player_account. Use it to save player information relevant to all titles in the namespace, such as cross-title rewards.
The Publisher ID identifies the namespace; publisher is the older API term for this scope. By default, all titles in a studio share one Publisher ID. The player’s master player account provides cross-title identity in that namespace, while the player also has distinct data in each title player account. For more information, see PlayFab concepts.
Some legacy configurations have multiple Publisher IDs in one studio or share a Publisher ID across studios. These configurations are uncommon.
Please don’t confuse player Publisher data with Publisher data which is Key/Value Pair data shared by all titles (it is not per-player).
