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: - Query a single achievement to unlock it.
- Update the status of the achievement.
|
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: - Load, save, and delete game save data.
- Display the state of all the containers and blobs used in a game in the debug output area.
|
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. |
Additional resources
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.