Removing widget instances

Hello.

I have several objects in my scene, just a bunch of boxes. The boxes are all the same, each one is the same blueprint.

I also have a UMG widget (Not a 3D widget) set to display on that box blueprint.

So far so good.

My question is: If I destroy one of those boxes, how do I also destroy the corresponding widget that is on that box?

Since each box in an instance, and each widget is an instance. I don’t see how I can tell which widget is a part of which box… do you know what I mean?

Any help here would be great.

Thank you :slight_smile:

Forgot to mention that I’m trying to destroy everything with an OnClicked event inside the widget itself (which is a button), if that makes any difference.

Are you not using the 3D widget because it is experimental? It would probably be easier. Well anyway, seeing as you are not using it… Here is a quick video tutorial to help you out.

If anything is unclear or you have further need of assistance, feel free to ask!

Mortus that’s brilliant! It works perfectly!

Yes, lol I’ve gone to great pains to avoid the 3D widgets, I’ve been extremely unlucky with them thus far (though I’m still trying to play with them when I can).

Thank you for being so generous with your time, that means a lot! :slight_smile: