OpenXr and XR don't disable in mac os builds

I am currently working on releasing an update that add mac osx support to my game. I am encountering an annoying issue of having to uncheck xr and openxr everytime I switch between windows which supports xr and mac which does not. If I don’t the mac build will fail which leads to much frustration when I forget to turn xr back on when building for windows. Is there a way to automatically turn off xr and openxr in mac builds to avoid this issue.

Start the game without XR, check for XR support (or which platform) in awake, then enable vr support if possible

yeah tried that. I can’t even have openxr checked with xr off and starting like that totally destabilizes the editor(eventually) and created a lot of timing issues in builds unfortunately.

Disable xr on startup, that’s the only thing. And then initialize XR in awake.

Well hopefully they will read this post and fix the issue. I have run into way to many problems starting up xr on demand.

If its a project breaking issue make a bug report

no just a major hassle that is all.

Is it fixed?

You can make a build script to turn it on and off probably

1 Like

Ok, thanks :slight_smile: