Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Discussion Multiple scenes in an MR app

Discussion in 'XR Interaction Toolkit and Input' started by drhmiri, Sep 22, 2022.

  1. drhmiri


    Jun 17, 2014
    We are developing a Unity app for HoloLens2 with MRTK and OpenXR.
    We understand adding new scenes is recommended (as opposed to putting everything in one crowded and heavy scene) the larger a HoloLens Unity project becomes.
    Does this advice also hold when you always have to import all the MRTK assets into your every scene?
    We started off creating a simple HoloLens app with Unity and of course in every scene you import the required and fundamental MRTK components.
    Can we have 10 scenes with each scene containing these components? Is that sustainable? Or should we have one giant scene and just move the camera around?
    Is there any documentation containing tips and guidelines like this?
    Last edited: Sep 23, 2022
  2. VRDave_Unity


    Unity Technologies

    Nov 19, 2021
    Hey @drhmiri ,
    Typically you will want to put your main components in a 'main' scene that does not get unloaded as you change your other scenes. This includes things like your XROrigin or character controls, etc. Then you can do additive scene loading/unloading to pull in the environment or scenarios as you need to. This preserves the XR rig setup throughout the session and ensures users have a visual connection during loads.
    drhmiri likes this.