XRManager change to MockHMD in runtime

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?

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/

1 Like