How to prevent automatic re-centering when scene is loaded on Gear VR?

混江龙づ霸主 提交于 2020-01-06 15:50:55

问题


I'm using Unity 5 and OVR utilities, I'd like to avoid the scene being recentered every time I load a new scene. Basically, I'd like the player to be able to sit down and even if he's looking at his right at the moment of a new scene loading, I'd like him to be able to continue playing without having to use some manual recentering or having to change his sitting position. I've found 2 other posts with the same question but only for other VR platforms and they didn't solve my problem:

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

Google Cardboard - how to face the same way when changing scenes?


回答1:


Turns out, if you're using OVR Utilities from Oculus, there's a very simple boolean-based solution that you can set in the Editor:

  1. Find the OVRManager script attached to the OVRCameraRig
  2. Uncheck 'Reset Tracker On Load'


来源:https://stackoverflow.com/questions/38481563/how-to-prevent-automatic-re-centering-when-scene-is-loaded-on-gear-vr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!