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 to MockHMD in runtime

Discussion in 'Scripting' started by GabsKapellmann, Mar 30, 2021.

  1. GabsKapellmann

    GabsKapellmann

    Joined:
    Jun 13, 2018
    Posts:
    10
    SI 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. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,520
    You might get more interesting and potentially useful answers if you check over in the VR/XR/AR group here on this forum. I imagine they have more immediate experience with this API.

    https://forum.unity.com/forums/ar-vr-xr-discussion.80/
     
    GabsKapellmann likes this.