# Is there any event when the size of Viewport changed?

**URL:** <https://forums.unrealengine.com/t/is-there-any-event-when-the-size-of-viewport-changed/66736>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 17, 2016, 4:53am UTC](https://forums.unrealengine.com/t/is-there-any-event-when-the-size-of-viewport-changed/66736 "2016-06-17T04:53:07Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![BOBtheROSS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BOBtheROSS](https://forums.unrealengine.com/u/BOBtheROSS)\
**Post date:** [January 14, 2024, 3:45pm UTC](https://forums.unrealengine.com/t/is-there-any-event-when-the-size-of-viewport-changed/66736/11 "2024-01-14T15:45:34Z")

</div>

Just for reference,

I stumbled over this event for Blueprints

**Get Game User Settings → Bind Event To On Game User Settings UI Needs Update**

it doesn’t executes on Play In Editor mode, but it does when using Standalone Game or building the game.

> [@How Create Event OnResize??? Is Possible?](https://forums.unrealengine.com/t/how-create-event-onresize-is-possible/396577/4):
>
> Get Game User Settings → Bind Event To On Game User Settings UI Needs Update This doesn’t work with Editor Viewport size changes only when using Standalone Game or actually building the project Maybe this works with editor viewport size changes : GEngine-\>GameViewport-\>Viewport-\>ViewportResizedEvent.AddUObject(this, &MyObj::MyFunction); void MyObj::MyFunction(FViewport\* ViewPort, uint32 val) { } It’s from this post:

---

_[View the full topic](https://forums.unrealengine.com/t/is-there-any-event-when-the-size-of-viewport-changed/66736)._
