XR Plug-in Management - > and uncheck where it says ‘Initialize XR on Startup’. (just make sure you remember you did this!)
So I’m not entirely sure yet how, but you would create a method like:
if (usingVRHeadset()) {
//run the start code here.
}
private bool usingVRHeadset() {
// STILL FIGURING THIS PART OUT, but it's something
// in the OpenXR api.
}
As of right now, I think you’re gonna want to know which headset you’re mainly targeting as well. Oculus for me doesn’t work when using the OpenXR plugin selected in XR Plug-in Management.
I Haven’t had troubles as of yet with my Oculus Rift S not Working with the OpenXR plugin selected. But I will let you know where I get with this. Thanks a lot! I should get around to trying this tomorrow.