Remove widget (floating healthbar)?

Crowley Caine
Mon, 28 Jan 2019 09:50:46 +0000
UI

I can’t find a good way to remove a widget from an enemy AI after said AI has died. The cause of the issue is that I never actually do “add to viewport” so “remove from viewport” naturally won’t work.

Here’s a screenshot of how the widget is added to the enemy AI:

And here’s a picture of some of the solutions I have tried so far:

Now, destroy component does exactly what I want it to do, except it tends to explode and send my character flying (fixed by turning off collisions), but this is not a good way to do things. Anyone have any idea how to get rid of this?

4 posts - 1 participant