(Optional) User Authentication

This guide provides instructions for replacing your XR project’s existing authentication system with XumAuth. The demo project includes sample code with the XumAuth module pre-integrated.

If you prefer to develop without using XumAuth, simply follow the instructions under Scene Assembly > Master Scene, and skip this page.

Import the Authentication Module

  1. Download and import the XumAuth package.

Replace the AuthModule in the Master Scene

  1. Open the Master scene from the path: Asstes > App > Scenes > Master

  2. Delete the existing AuthModule GameObject.

  3. Drag the XumAuthModule prefab into the desired position within the scene hierarchy

  4. XumAuthModule Inspector:

    1. Set the Database Accessor field to the object AccountsLiteDbAccessorFactory located under the Factories GameObject.

Modify the Spawner Scene

  1. Delete the Spawner object.

  2. Add the XumSpawner prefab (Assets/Prefabs)

  1. In the XumSpawner object.

    1. Set the "Spawner Port Range"

Note: The port range corresponds to the number of rooms that can be created.

Configure the Client Scene

  1. Disable or Remove the SimpleSingInView object.

  2. Add the SignInView prefab (Assets/MasterServerToolkit/Bridges/Shared/Prefabs/UI)

  1. In the ClientManager object.

    1. Uncheck "Remember User".

    2. Uncheck "Use Default Credentials".

  1. In the RoomClientManager object:

  2. UnCheck "Sign in As Guest"

Build & Run

  1. Use a registered XUM platform account to log in.

Last updated