Hello! I've been creating a project and suddenly noticed a weird error after building my VR project. My unity version is 5.6.0f3 and just recently updated OVR to 1.13.0.
The problem is that when the Oculus rift hmd is not on users head, the game crashes. But if the headmount is on users head and oculus is active, it works. Anyone has any idea why is that? Or if anyone has noticed the same problem.
Hi! Same issue here. While running from the editor all works fine. The problem only apears in a build.
Answer by MasterLu
Apr 13 at 04:37 PM
I have found a workaround that works for me. It looks like the crash happens when you take off the headset an there is no other camera in the scene than that of the oculus cameraRig. I fixed the problem with adding an additional non vr-camera in the background. Every time, i take off the headset this camera is rendered in the gamewindow instead of crashing the game.
Answer by sbmhome
6 days ago
Thanks for the heads up. What you mentioned fixed it for me as well.
Answer by Oneesama
5 days ago
Just wanted to add that for this fix to work, the "fallback" camera need to have the Depth value lower than any other VR cameras in your scene.
I already had a setup in my scene with a non-vr cam for the monitor only to render. The Depth value was above my VR cams and the crash still occurred.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
126 People are following this question.
Developing for VR and Multiple Platforms
GearVR HMD Head Mounted detection stops working after a level reload
VR input form preset / asset / plugin?
Blurry textures in Gear VR
In Gear VR, is it possible to start the game without VR, and turn VR on via script?