How to destroy UMG widget?

I don’t use Blueprints for much, but just using the “Set” node for your object and not setting it to anything should do the trick.

And technically “RemoveFromParent” is “RemoveFromViewport” (the latter exists in C++, but it’s just a deprecated version of the former). It works fine provided that you aren’t calling “CreateWidget” over and over again. The main issue this thread seems to be pointing to is that there might be use cases where you really want the widget destroyed and cleared out of memory for performance purposes. Apart from that, I think the current system works fine provided things are set up in a way that works.

2 Likes