Hi, I developer a resource in UMG as Fluid Panel to resize Panels in Dynamic Resolution…
I have already managed to create the functions that resizes the panels to the current resolution of the viewport but I need to perform that same function when the game window is resized … same as the javascript OnResize is there any available event ???
Edit 10.04.2025
I posted c++ code for a function in a BlueuprintFunctionLibrary Plugin that lets you bind a custom event to the FViewport::ViewportResizedEvent
.h
//the delegate you will bind to in Blueprints
DECLARE_DYNAMIC_DELEGATE(FOnMyViewportSizeChange);
//the function you will call to bind
UFUNCTION(BlueprintCallable)
static void BindToViewportResizeEvent(const FOnMyViewportSizeChange& ViewportSizeChanged);