Getting title data
From the game client
Use GetTitleData from thePlayFabClientAPI to get the KVPs for a specific title. The following code example displays the values of all of the title data.
From the game server
Use GetTitleData from thePlayFabServerAPI to get the KVPs for a specific Title. The following code example displays the values of all of the Title Data.
Setting title data
It is unlikely that title data will change very frequently. For most situations, you should use your title data for static data that is mostly unchanged for the life of the title. You can set title data by using the Game Manager, or by a server API function.Setting title data using Game Manager
To add Primary Title Data using Game Manager to a title, perform the following steps.- Open the title in Game Manager.
- Select Content, then Title Data.
- Select New Title Data
- In the new title data page, enter a value for the Key and a value for the Value. Both the Key and the Value are stored as strings.
- Use the Save button to save the new data item.
Setting title data by calling the server API in C
The SetTitleData API is a server API that you must call from a dedicated server. You can only set one title data KVP in each call toSetTitleData.
Setting title data overrides using Game Manager
An override is also a set of JSON key-value pairs and ideally should be purposed to possess the delta change required in the key-values pairs of the Primary Title Data. The delta change could comprise of the key-value pairs when compared to Primary Title data as new key-value, change in an existing key’s value or deletion of a key (with NULL as an input of the value). To add overrides to the primary title data, perform the following steps.- Open the title in Game Manager.
- Select Content, then Title Data.
- Select New Override.
- Enter the Override Label, plus, enter a value for the Key and a value for the Value. Both the Key and the Value are stored as strings.
- Use the Save button to save the new Title Data Override.
This override set of key/value pairs comes in-effect only using Experiments for now.
Title Data Override values may take up to one minute to refresh and persist.
