I just created a new VR project and I’ve enabled Oculus support, but when I hit play in the editor, all I get is a black screen and the oculus “Loading…” popup inside the headset. If I build the game and run the exe, it works fine. I haven’t modified anything in the SampleScene other than enabling Oculus for the PC (not in Android mode).
I’m using Unity 2020.3.1f1 Personal, and an Oculus Rift S. Windows, Nvidia and Oculus are all up to date. I’ve had some bad experiences with VR in Unity about a year ago, but in 2021 I would expect it to work out of the box with the second most common VR headset on the market.
You should be able to fix this by restarting the oculus desktop app and then restarting unity. Sometimes the oculus app and unity will go out of sync and oculus will detect unity as running when its not utilizing the hmd and this can cause the problem.
If this doesn’t solve the problem please let us know and we can look into it some more.
Thanks for the reply! I’ve been able to solve the issue for now by updating Unity to the latest version (2020.3.3f1 I believe). I will definitely keep this in mind if the problem happens in the future.