# How to use vertical FOV using Blueprints

**URL:** <https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816>\
**Category:** Cinematics & Media\
**Tags:** fov, field-of-view, unreal-engine, UE4, Blueprint, question\
**Created:** [July 12, 2016, 8:41pm UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816 "2016-07-12T20:41:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zigziglagirafe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zigziglagirafe](https://forums.unrealengine.com/u/zigziglagirafe)\
**Post date:** [July 12, 2016, 8:41pm UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/1 "2016-07-12T20:41:25Z")

</div>

Hi,

Camera settings only provide a way to change the horizontal fov :

![98236-ue4_horizontalfov_1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/1/9b1380ece9989ab81860ad093fde0a37ce5910d0.jpeg)

Same in Blueprint :

![98237-ue4_horizontalfov_2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/0/b60aa51bedee31e73c749e16d5e3e06df12a71cf.jpeg)

How can we force **vertical FOV**?

Thanks

---

<div class="post-metadata">

**Author:** ![Reko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Reko](https://forums.unrealengine.com/u/Reko)\
**Post date:** [August 5, 2016, 9:15am UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/2 "2016-08-05T09:15:26Z")

</div>

![101564-fov.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/7/217aeed059ee3ee1c2f6aa206b451945c493839d.jpeg)

Use this to lock it to vertical (the wider the monitor the more you see to the sides (like it should be)).

-Remember to use degrees not radians.

-Put it to the Tick function to make sure it updates if the viewport is changed.

---

<div class="post-metadata">

**Author:** ![zigziglagirafe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zigziglagirafe](https://forums.unrealengine.com/u/zigziglagirafe)\
**Post date:** [August 7, 2016, 7:05pm UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/3 "2016-08-07T19:05:56Z")

</div>

Thank you ! Just great 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e1600e71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e1600e71](https://forums.unrealengine.com/u/anonymous_user_e1600e71)\
**Post date:** [February 16, 2017, 1:45pm UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/4 "2017-02-16T13:45:47Z")

</div>

Works like a charm. GG

---

<div class="post-metadata">

**Author:** ![AlexeyLM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexeyLM](https://forums.unrealengine.com/u/AlexeyLM)\
**Post date:** [May 9, 2019, 8:42pm UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/5 "2019-05-09T20:42:05Z")

</div>

Just keep in mind that “Make Literal float” is a VERTICAL VALUE - for FOV 90, this value will be 59. The calculator is at [Horizontal/Vertical FOV Calculator](https://themetalmuncher.github.io/fov-calc/)

---

<div class="post-metadata">

**Author:** ![cesarizu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cesarizu](https://forums.unrealengine.com/u/cesarizu)\
**Post date:** [May 19, 2019, 7:26pm UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/6 "2019-05-19T19:26:31Z")

</div>

C++ Version:

```
int x, y;
World->GetFirstPlayerController()->GetViewportSize(x, y);
Camera->FieldOfView = FMath::RadiansToDegrees(2 * FMath::Atan(FMath::Tan(FMath::DegreesToRadians(Camera->FieldOfView) / 2) * x / y));
```

---

<div class="post-metadata">

**Author:** ![Neo\_Fahrenheit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Neo\_Fahrenheit](https://forums.unrealengine.com/u/Neo_Fahrenheit)\
**Post date:** [July 23, 2020, 12:03am UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/7 "2020-07-23T00:03:04Z")

</div>

Can I get a version of this, but to lock the horizontal FOV? Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![AlexeyLM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexeyLM](https://forums.unrealengine.com/u/AlexeyLM)\
**Post date:** [July 23, 2020, 6:51am UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/8 "2020-07-23T06:51:28Z")

</div>

Horizontal field of view works in the engine by default/

---

<div class="post-metadata">

**Author:** ![xgkick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xgkick](https://forums.unrealengine.com/u/xgkick)\
**Post date:** [December 29, 2022, 7:17am UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/9 "2022-12-29T07:17:36Z")

</div>

I don’t think calculating and setting FOV in every tick is a good way.  
You should try following INI setting.

[/Script/Engine.LocalPlayer]  
AspectRatioAxisConstraint=AspectRatio\_MaintainYFOV

---

<div class="post-metadata">

**Author:** ![DevouringAxe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devouringaxe/32/721278_2.png) [@DevouringAxe](https://forums.unrealengine.com/u/DevouringAxe)\
**Post date:** [June 10, 2023, 11:03pm UTC](https://forums.unrealengine.com/t/how-to-use-vertical-fov-using-blueprints/363816/10 "2023-06-10T23:03:44Z")

</div>

Or you can Call `GetLocalPlayer()->AspectRatioAxisConstraint = EAspectRatioAxisConstraint::AspectRatio_MaintainYFOV;`
