Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

How to fix the disable/enable black screen bug in Unity Editor ?

To reproduce, try to load a demo scene like "Cubes", then press Play and disable and re-enable the Rift gameobject (like OVRCameraRig).

You will notice a black screen instead of the rift preview on the "Game" tab.

I was able to fix this with some minor hooking in OVRManager.cs in previous integration kits, but it's not working in 4.4.4, it is now crashing Unity.

Does anyone fixed this ?

Best Answer

  • lemerou-ahublemerou-ahub Posts: 3
    Accepted Answer

    Remade it for DX9 & DX11 and it should also fix some random crashes when closing DX11 application.
    Note that if you want disable any active OVR prefab, put your SetActive code in a LateUpdate() method to avoid any crash.
    https://www.diffchecker.com/ilom9i4t

Answers

Sign In or Register to comment.