FOV Completely Shows different values

So I was just trying to make smooth FOV transitions between running and walking actions. (I am totally amateur) Then I was started to think inspector FOV output wasn’t really look like true. Then I created my own FOV output with Canvas and outputs were totally different. And yes I have only one camera. So is my script wrong? Is it some Unity problems? Can someone explain me and help?

Thanks for the explanations!

Camera fieldOfView is always the Vertical FOV. You have yours set to horizontal.

1 Like

Thank you for your response!

It actually worked now. And what about horizontal fov? can i change that through script?

Nope, Unity doesn’t really have a horizontal fov mode. When the aspect ratio changes, it always keeps the vertical fov constant and the horizontal one changes.

If you want constant horizontal fov regardless of aspect ratio you need to do the calculations yourself to convert to vertical fov and set that all the time.

These may help:

3 Likes