Search code examples
unity-game-enginegoogle-cardboardgoogle-vrvirtual-reality

Unity + GoogleVR: How to disable stereoscopy?


I'm making a (2D) 360 image viewer in Unity for GoogleVR/Cardboard, and each eye is receiving a slightly different view of the scene for a stereoscopic effect. I'd like to disable this, and have each eye receive the same image.


Solution

  • Not sure why you would like to disable this but assuming you're using GoogleVR assets, you can set the values of Eye property of GvrEye scripts to Center (they are found on Main Camera Left and Main Camera Right game objects at runtime), then you set the transform.position.x to 0 and the transform.localEulerAngles.y to respectively -8 and +8 on Main Camera Left and Main Camera Right (those values seem good to me but you can tweak them I guess).