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

  1. In your project, navigate to <your-project-scene-folder>

  2. Create a new scene(and name it, e.g. MyClient) and open it.

  3. Right-click in the Hierarchy and select UI > Event System to add an EventSystem GameObject.

  4. From Packages/Xum Lobby/Runtime/Prefabs/1)Client Scene, add the four prefabs to the scene.

    1. C-RoomServer

    2. C-RoomClient

    3. C-ClientMasterConnector

    4. C-MasterCanvas

      1. For 2D Screen Device(PC or Tablet): Set Render Mode to Screen-Space - Overlay

      2. For 3D Screen Device(VR/AR): Set to World Space


Room Scene

  1. In your project, navigate to <your-project-scene-folder>

  2. Create a new scene(and name it, e.g. MyRoom) and open it.

  3. From Packages/Xum Lobby/Runtime/Prefabs/2)Room Scene, add the five prefabs to the scene.

    1. R-RoomServer

    2. R-RoomClient

    3. R-ConnecltionToMater

    4. R-MasterCanvas

    5. R-PlayerSpawner

  4. Configure the Render Mode option of R-MasterCanvas in the same way as C-MasterCanvas in the Client Scene:

    1. Screen Space - Overlay for 2D screen device

    2. World Space for AR/VR devices


Registering Scene

  1. Register the room scene in your client scene (e.g., MyClient Scene)

    1. Navigate to: C-MasterCanvas > OXR_CreateNewRoomView

      1. In the OXRCreateNewRoomView component(very bottom), click ‘+’ button and type the name of the new room scene (e.g., MyRoom) in Available Room Scenes.

  2. Navigate to: C-RoomServer and R-RoomServer

    1. In the DefaultScene component, set

      1. Offline Scene to, e.g. MyClient

      2. Online Scene to , e.g. MyRoom

Last updated