Scene Assembly
Scene Overview
To develop a multi-user collaboration application using the OXR Platform, the following scenes must be prepared as part of your project structure:
Client Scene
In your project, navigate to
<your-project-scene-folder>
Create a new scene(and name it, e.g. MyClient) and open it.
Right-click in the Hierarchy and select UI > Event System to add an EventSystem GameObject.
From
Packages/Xum Lobby/Runtime/Prefabs/1)Client Scene
, add the two prefabs to the scene.C-RoomServer
C-RoomClient
C-ClientMasterConnector
C-MasterCanvas
For 2D Screen Device(PC or Tablet): Set Render Mode to Screen-Space - Overlay
For 3D Screen Device(VR/AR): Set to World Space
Room Scene
In your project, navigate to
<your-project-scene-folder>
Create a new scene(and name it, e.g. MyRoom) and open it.
Delete all existing Game Objects from the Hierarchy.
From
Packages/Xum Lobby/Runtime/Prefabs/2)Room Scene
, add the two prefabs to the scene.R-RoomServer
R-RoomClient
R-ConnecltionToMater
R-MasterCanvas
RPlayerSpawner
Configure the Render Mode option of R-MasterCanvas in the same way as C-MasterCanvas in the Client Scene:
Screen Space - Overlay for 2D screen device
World Space for AR/VR devices
World Space for AR/VR devices
In the DefaultScene component, configure the Offline Scene to MyClient Scene and Online Scene to , e.g. MyRoom field.
To test the setup, we will simply create a Plane.
Right-click in the Hierarchy, go to 3D Object -> Plane to add a Plane GameObject.
In the Inspector
Reset the Transform
Set the Scale to X:5, Y:5, Z:5
Registering Scene
Register the room scene in your client scene (e.g., MyClient Scene)
Navigate to:
C-MasterCanvas > OXR_CreateNewRoomView
In the OXRCreateNewRoomView component(very bottom), click ‘+’ button and type the name of the new room scene (e.g., MyRoom) in Available Room Scenes.
Navigate to: C-RoomServer
In the DefaultScene component, set
Offline Scene to MyClient
Online Scene to , e.g. MyRoom
Last updated