# 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:** 7

<div class="post-metadata">

**Author:** ![dawnarc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dawnarc](https://forums.unrealengine.com/u/dawnarc)\
**Post date:** [October 23, 2018, 12:43pm UTC](https://forums.unrealengine.com/t/is-there-any-event-when-the-size-of-viewport-changed/66736/7 "2018-10-23T12:43:53Z")

</div>

> [@brenerrr](#):
>
> Hi! Could you post how you actually bound a function to this delegate? I’m having a hard time doing it. Thanks!

```auto
GEngine->GameViewport->Viewport->ViewportResizedEvent.AddUObject(this, &MyObj::MyFunction);
void MyObj::MyFunction(FViewport* ViewPort, uint32 val)
{
}

```

---

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