Is there any event when the size of Viewport changed?

If the goal is just to “sense” a resizing, FViewport::ViewportResizedEvent is unreliable in certain situation, like on Windows if you press the maximization button. You must also bind with GEngine->GameViewport->OnToggleFullscreen() to cover all edge cases.

1 Like