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

前端 未结 2 866
说谎
说谎 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: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.

提交回复
热议问题