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

前端 未结 2 837
说谎
说谎 2021-01-14 16:42

I\'m having trouble trying to maintain what Google Cardboard considers forward for the device after a scene load. Although I can\'t find any obvious call to this in the SDK

相关标签:
2条回答
  • 2021-01-14 17:37

    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'
    0 讨论(0)
  • 2021-01-14 17:42

    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.

    0 讨论(0)
提交回复
热议问题