Microsoft GDK Sample: Sign-in
Relevant areas: User Sign-in
Description
This sample demonstrates user sign-in.

Recommended reading:
- Microsoft documentation: Title-Managed Achievements overview
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 GDKpackage, then from theSamplessection install the sample - From the
Build Settingswindow,Windowsplatform selected, add the sample scene andbuildto a target folder - In the
Projectwindow 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 Explorerfrom 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 - Manually run the 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 GDKpackage, then from theSamplessection install the sample - In the
Projectwindow 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 Settingswindow, with theWindowsplatform selected, add the sample scene thenBuild & Run
Known Issues
See the com.unity.microsoft.gdk package CHANGELOG.md for known issues.