How to destroy UMG widget?

That code is called when the widget is destructed, not something that should be called.

It seems like the correct way is to make sure there are no strong references in memory to the widget so it gets garbage collected, and to manually invoke the garbage collector so it happens ASAP.

1 Like