Samples overview
The Microsoft GDK API package contains a set of samples to help you explore the Xbox Services such as Achievements, Cloud Saves and Leaderboards. A sample contains C# scripts, scenes, a Microsoft Game Configuration file, and a GDK Settings file.
The samples can be found using the following steps:
- Create a new Unity Project.
- In the main menu, go to Window > Package Manager.
- In the packages list view, select the Microsoft GDK API package.
- In the Package details view, select Samples.
- Import the sample you want to explore.
Provided samples
Sample | Description |
---|---|
Achievements | Demonstrates basic interaction with Title-Managed Achievements. Use it to:
|
Cloud saves | Demonstrates the use of XGameSaveAPIs to implement cloud saves. Use it to save, upload, and retrieve cloud save data . |
Game Save | Demonstrates the use of XGameSaveAPIs and full-sync or sync-on-demand mode. Use it to:
|
In Game Store | Demonstrates an in-game store implementation to present specific items for the users to purchase using the XStore API. |
Leaderboards | Demonstrates the use of Leaderboards in a title using Player Stats and Player Stat Rules. Use it to rank game participants based on their position in the game in relation to their peers. |
Sign-in | Demonstrates a scenario where a user signs-in when the game scene starts. |
Speech Synthesizer | Demonstrates the use of the Speech Synthesizer feature. Use it to set up a speech synthesize engine to convert text messages into audio streams. |
Users | Demonstrates user identity using the XUser Game Core API. Use it to query the gamertag and check the status of the user sign-in. |