(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
Master
scene from the path:Asstes > App > Scenes > Master
Delete the existing
AuthModule
GameObject.Drag the
XumAuthModule
prefab into the desired position within the scene hierarchyXumAuthModule
Inspector:Set the Database Accessor field to the object
AccountsLiteDbAccessorFactory
located under theFactories
GameObject.

Modify the Spawner Scene
Delete the
Spawner
object.Add the
XumSpawner
prefab (Assets/Prefabs
)

In the
XumSpawner
object.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
SimpleSingInView
object.Add the
SignInView
prefab (Assets/MasterServerToolkit/Bridges/Shared/Prefabs/UI
)

In the
ClientManager
object.Uncheck "Remember User".
Uncheck "Use Default Credentials".

In the
RoomClientManager
object:UnCheck "Sign in As Guest"

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