Skip to content
Franklin Chen edited this page Jan 8, 2018 · 2 revisions

Welcome to the Partner Unity UWP Sample Assets wiki!

Firstly, please note that the official Unity plugin for ID@Xbox developers that linked to here in Step 6.

The code logic of this sample assets is based on xbox-live-unity-plugin to support Creators Program and ID@XBOX Program Partner. Most API surfaces are remained the same.

In this assets, we used xbox-live-api instead of the original Xbox Live libraries (e.g. Microsoft.Xbox.Services.UWP.CSharp.dll), so that we can use achievements and some other features that is not supported in Xbox Live Creators Program. However, as we used WinRT APIs, there will be no placeholder data when playing in the editor.

This sample assets is still under developing. For now, it only demonstrates SignIn and Profile, Stats, Leaderboards and Achievements. Developers can refer to this sample assets and develop your own implementation.

Unity Assets file structure

The Unity Assets is broken into the following parts:

  • Assets contains the Unity project content.
    • Xbox Live contains the actual assets that are included in the published .unitypackage.
      • Editor contains scripts that provide the basic Unity configuration UI and processes the projects during build.

      • Examples contains a set of simple scene files that show how to use the various prefabs and connect them together. For how to use these scenes, please refer to Develop in Unity.

        Note: Main.unity scene is used as a scenario sample. For more details, see Scenario Sample.

      • Images is a small set of images that are used by the prefabs.

      • Libs is where the Microsoft Xbox Live Service API (XSAPI) libraries stored.

      • Prefabs contains various Unity prefab objects that implement Xbox Live functionality.

      • Scripts contains all of the code files that actually call the Xbox Live APIs from the prefabs. This is a great place to look for examples about how to properly call the Xbox Live APIs.

      • Tools/AssociationWizard contains the Xbox Live Association Wizard, used to pull down application configuration from the Windows Dev Center for use within Unity.