Bug: Remove from parent not working when called from Actor Component

I have a character with a dialogue Screen widget.

If I destroy the component on begin play, it works.

image

However, if I don’t destroy the component on begin play, and instead try to destroy it from within an actor component, it doesn’t work.

image



I can confirm that the begin play event is firing within the actor component, but the destroy component node does nothing.


There are 4 print strings in the top left because there are 4 characters in the scene, NOT because the widget is being created 4 times.

Any ideas what’s going on? Or is this a bug?

Solved on reddit:

“This looks like to me its an owner ship issue. I.e. only the object that owns the component can destroy and unregister it. You might need to make an interface, for your component to have on its host actor to request the host to destroy the component.” --d0x

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.