"Destruct" event for UMG ?

In UMG we have a “construct” event (that is not properly named, as it’s called every time the widget is added to the viewport), but there’s no “destruct” (or “removedFromViewport”) event.

Hi pedro_clericuzzi,

Try a “remove from parent” node, see if that achieves what you are looking for.

Hi ,

“Remove from parent” removes the widget. What I’m looking for a way for the widget to be notified when it (or its parent) is removed from the viewport so I can do things like stopping timers and other cleanup actions.

I see what you are saying, we will take this into consideration. Thank you and have a great day!

in the widget blueprint there is an event destruct