Hello to all,
I am trying to create a dynamic death component.
I have on some enemy a Widget component called HealthBar.
When the death function is fired, I do a loop on components “Widget component” from my Owner to delete them.
I retrieve them using:
During debugging, I can see the value retrieved:
However, the HealthBar widget component is not removed from the screen.
I believe it could be related to the garbage collector taking time or something like that, but when I put the “equivalent” action in the blueprint of my enemy directly using:
It works perfectly.
Could you please help me understand how to correctly delete the Widget component from my dynamic death component?
Thanks in advance