Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Discussion Multiple scenes in an MR app

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

  1. drhmiri

    drhmiri

    Joined:
    Jun 17, 2014
    Posts:
    82
    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

    VRDave_Unity

    Unity Technologies

    Joined:
    Nov 19, 2021
    Posts:
    260
    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.