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 four 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.
From
Packages/Xum Lobby/Runtime/Prefabs/2)Room Scene
, add the five prefabs to the scene.R-RoomServer
R-RoomClient
R-ConnecltionToMater
R-MasterCanvas
R-PlayerSpawner
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
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 and R-RoomServer
In the DefaultScene component, set
Offline Scene to, e.g. MyClient
Online Scene to , e.g. MyRoom
Last updated