How to toggle off Unity Google VR CardBoard head tracking function while in game?
Hi,
I am using Unity 5.6 with the latest google cardboard sdk.
What I am trying to do is sometimes in my game, I want my camera to move and rotate along a certain path. Now I have made the movement part works, but I can not find a way to disable the camera rotation part. No matter what and how I've tried, it seems that the head tracking function is always on.
I have searched through google and found that I might need to modify GvrMainViewer or GvrHEad or something like that . But I can not find any of them in my project nor in google sdk.
Any help or hint would be much appreciated. Thanks!
Answer by pravchuk · Sep 02, 2017 at 01:41 PM
using UnityEngine.VR;
....
VRSettings.enabled = false;
Your answer
![](https://koobas.hobune.stream/wayback/20220612124034im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Camera.RenderToCubemap in VR has black edges 1 Answer
pressing/turning something in VR to do stuff 0 Answers
Making KeyCodes Equal to Touch Triggers? 1 Answer
Trouble with shadows and water 0 Answers