Persist Google Cardboard forward direction across scene loads in Unity3D 4.6.7?

[亡魂溺海] 提交于 2019-12-01 08:37:36

The function Cardboard.OnLevelWasLoaded() calls device.Reset(), which in the base class implementation just calls Recenter(), which has the effect you are seeing. If you comment out that line, or guard it with a variable you can control, the facing should not reset.

Kristof

I had the same problem but on Gear VR (Unity 5). In case anyone else is looking for this, I've answered it here.

Briefly, if you're also using OVR Utilities from Oculus:

  1. Locate the OVR Manager script attached to the OVRCameraRig
  2. Uncheck 'Reset Tracker On Load'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!