exposing FViewport::FOnViewportResized delegate in BlueprintFunctionLibrary to Blueprints

i would create a new dynamic delegate (not multicast) for my param. and use that.
then bind in a different way. either bind your functionbp, and let your function bp receive the event, then call the delegate (maybe youll need a list for this).
or somehow connect the delegate to the viewport delegate (maybe with a lambda if it allows you).

here’s an example of how i wrap delegates, JUtils/Source/JUtils/Actors/DelegateWrappers.h at master - jerobarraco/JUtils - Codeberg.org
it’s a different use case but can be an example.

1 Like