Play mode does not launch in VR headset after previously working

So I am developing a VR application and recently encountered a very frustrating bug. After starting my project in the editor a few times to test some environment stuff (without putting on my headset) I now can’t get play mode to work in my headset the way it did previously. Every time I hit play, it just hangs for a second, then takes me back to the editor view, which is in play mode.

I’ve done some googling and found several mentions of this, and I’ve tried several solutions including running this script: Dorkbots-UnityUtils/Dorkbots/XR/EnableXR.cs at main · dorkbot/Dorkbots-UnityUtils · GitHub. Unfortunately none of it has worked and I’ve now lost several days of development time.

Anyone have a tried and true simple solution to this? Also, the console doesn’t offer any particularly useful feedback either.

I also ran into this problem, and it hung up progress for a few days.

Unity 2022.3.x
Quest 3 with Quest Link cable
“OpenXR” settings for XR Plug-in Management for both PC and Android.

My solution was two parts. I did use the Dorkbots solution posted above (add their EnableXR.cs script to a GameObject already in your scene). I also reverted my OpenXR package version in the manifest file to 1.10.0. Version 1.12 seemed to break everything for me.

Quit out of Unity. Go to your project’s Packages directory and open manifest.json in a script editor. Find “com.unity.xr.openxr”: and set the version to “1.10.0”, Save and relaunch Unity.

I also uninstalled all Oculus packages in my Unity Project.

I hope that helps.