Selecting XRInputSubsystem at runtime in code

Hi,

I’m building a multiplatform app for VR/AR using XR management. When running on Android it crashes when I have the Oculus XR plugin installed. I get following debug line:

AndroidPlayer(ADB@127.0.0.1:34999) Multiple XRInputSubsystem found. Using oculus input

The thing is, I do not want to use the oculus input on Android. How can I programmatically disable the oculus subsystem or how can I make it select another subsystem?

Hi :),
could you find any solution yet? I am experiencing a similar problem when building a multiplatform app for Magic Leap / UWP…

uncheck the box to initialize xr on startup.

then use

yield return XRGeneralSettings.Instance.Manager.InitializeLoader();
while (!XRGeneralSettings.Instance.Manager.isInitializationComplete)
{
yield return null;
}
XRGeneralSettings.Instance.Manager.StartSubsystems();

in a coroutine to initialize vr after changing the list of systems to load to exclude oculus or change the order so oculus is after the one you want to load.