XRManager change plugin (to MockHMD) in runtime

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?

There is an example of this in the docs for XR Management: End-user documentation | XR Plugin Management | 4.0.7 (unity3d.com)

Look to the very end.