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

Question XRManager change plugin (to MockHMD) in runtime

Discussion in 'XR Interaction Toolkit and Input' started by GabsKapellmann, Mar 30, 2021.

  1. GabsKapellmann

    GabsKapellmann

    Joined:
    Jun 13, 2018
    Posts:
    10
    I have been trying to do this, but I am getting stuck, clearly I am missing something.

    So my app starts with an XRLoader (Oculus) working. I am trying to swap to MockHMD and back depending on the input of the user.

    I know that getting through the XRManagerSettings we can get to the current activeLoader, and to stop the Subsystems. But I cant find a way to set the activeLoader as it is a "private set" parameter.

    Is this the right path or am I complicating things?
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958