- Home /
Adjusting Camera Field of View in VR (Occulus 2)
I want to adjust the Field of View of a camera in Unity VR. When I try to adjust it, the FOV reverts to 99.999 during runtime.
I have tried using GetComponent<Camera>().stereoTargetEye = StereoTargetEyeMask.None;
But that just makes the screen blank completely. I'm not sure what else to try - I am using the OpenXR Interaction Toolkit to streamline most of the processes. This is probably what is causing the issue but I'm not sure how to navigate it. Any help would be appreciated.
I don't think you can adjust it but I'm not sure. The scale in Unity is that one meter is one Unit and that the fov is fixed by the device used. I myself found no way of fixing my problem that I had missed this, other than rescaling the whole world and move the camera closer and modify all of the physics (mass, gravity, engine thrust, drag) which was not easily done. There are games/experiences that do this (using UE is http://kingdomcitydrowning.webflow.io/), so it must be possible somehow. I would also like to know how this can be done in Unity.
Answer by jcreeno77 · May 04 at 08:13 AM
So for future reference - I found the solution that works for me. Change the scale of the XR Origin (Or the Parent object of all VR components) and it will change the scale of the FOV as well. Very easy once you look in the right direction.