Microsoft GDK Sample: Cloud Saves
Relevant areas: User Sign-in, ...
Description
Usage (without the com.unity.microsoft.gdk.tools package)
Whilst this sample can be built and run without having the Microsoft GDK Tools package (com.unity.microsoft.gdk.tools), it is a more manual process and will not work 'out of the box'. Using the Microsoft GDK API package (com.unity.microsoft.gdk) by itself is only recommended for those with that specific requirement.
- Open the Unity Project and add the com.unity.microsoft.gdk package
- From the Package Manager windows (
Unity Main Menu -> Window -> Package Manage
), selected the installedMicrosoft GDK
package, then from theSamples
section install the sample - From the
Build Settings
window,Windows
platform selected, add the sample scene andbuild
to a target folder - In the
Project
window navigate to the recently installed sample folder which comes with pre-created Microsoft Game Config files. Manually copy the PC Microsoft Game Config (Show in Explorer
from the context menu will help locate the file) to the resulting build folder where the built executable should now exist. - Rename the file copied in step 4 to
MicrosoftGame.config
- Ensure that the required GDK Assemblies are deployed to the build
- Manually run the built executable
Usage (with the com.unity.microsoft.gdk.tools package)
Using both the Microsoft GDK API (com.unity.microsoft.gdk) and Microsoft GDK Tools (com.unity.microsoft.gdk.tools) packages together is the recommended approach when developing for GDK. The tools package offers support that you do not get with the API package alone.
- Open the Unity Project and add the com.unity.microsoft.gdk and com.unity,microsoft.gdk.tool packages
- From the Package Manager windows (
Unity Main Menu -> Window -> Package Manage
), selected the installedMicrosoft GDK
package, then from theSamples
section install the sample - In the
Project
window navigate to the recently installed sample folder, the sample comes with pre-created Microsoft Game Config and GDK Settings assets. Double click on the GDK Settings asset making it the currently active settings (or useUnity Context Menu -> GDK -> Make GDK Settings Active
) - From the
Build Settings
window, with theWindows
platform selected, add the sample scene thenBuild & Run
Known Issues
See the com.unity.microsoft.gdk
package CHANGELOG.md for known issues.