(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
Download and import the XumAuth package.
Replace the AuthModule in the Master Scene
Open the
Masterscene from the path:Asstes > App > Scenes > MasterDelete the existing
AuthModuleGameObject.Drag the
XumAuthModuleprefab into the desired position within the scene hierarchyXumAuthModuleInspector:Set the Database Accessor field to the object
AccountsLiteDbAccessorFactorylocated under theFactoriesGameObject.

Modify the Spawner Scene
Delete the
Spawnerobject.Add the
XumSpawnerprefab (Assets/Prefabs)

In the
XumSpawnerobject.Set the "Spawner Port Range"

Note: The port range corresponds to the number of rooms that can be created.
Configure the Client Scene
Disable or Remove the
SimpleSingInViewobject.Add the
SignInViewprefab (Assets/MasterServerToolkit/Bridges/Shared/Prefabs/UI)

In the
ClientManagerobject.Uncheck "Remember User".
Uncheck "Use Default Credentials".

In the
RoomClientManagerobject:UnCheck "Sign in As Guest"

Build & Run
Use a registered XUM platform account to log in.
Last updated