How to delay or ignore components destruction after destroy actor?

To prevent the effects from disappearing when the actor is destroyed, I am looking for a way to keep only the effect components functioning after the actor is destroyed.
Is there a way to delay the destruction of a component or detach it from the actor?
Detach from Component doesn’t seem to work for this purpose.

To delay or ignore component destruction after destroying an actor in Unreal Engine, you can take several different

approaches depending on the behavior you want to achieve.

What is approaches?

In BPs? I’d say no. C++ allows to move component ownership, can’t recall the function but it’s not SetOwner - it’s something completely unintuitive I keep forgetting.


Could you hide / disable the actor for as long as the components needs to stay alive? And have the component take the actor down instead once the comp’s desired lifespan has expired?

Could that work in your scenario?

1 Like

In my scenario I couldn’t do this directly because the actor needed to be destroyed immediately.
However, by creating an actor specifically for effects and attaching it when generating an actor, it is now possible to execute the Destroy Actor individually.

Very primitive, but works well as an alternative :slight_smile:

1 Like

On the contrary, I’d say it’s a pretty decent idea - you effectively have an effect manager actor.

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