# How to delay or ignore components destruction after destroy actor?

**URL:** <https://forums.unrealengine.com/t/how-to-delay-or-ignore-components-destruction-after-destroy-actor/2059915>\
**Category:** Blueprint\
**Tags:** Destroy-Actor, unreal-engine, Components, question\
**Created:** [October 9, 2024, 9:50am UTC](https://forums.unrealengine.com/t/how-to-delay-or-ignore-components-destruction-after-destroy-actor/2059915 "2024-10-09T09:50:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [October 9, 2024, 9:50am UTC](https://forums.unrealengine.com/t/how-to-delay-or-ignore-components-destruction-after-destroy-actor/2059915/1 "2024-10-09T09:50:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![scopegranites](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scopegranites](https://forums.unrealengine.com/u/scopegranites)\
**Post date:** [October 9, 2024, 10:22am UTC](https://forums.unrealengine.com/t/how-to-delay-or-ignore-components-destruction-after-destroy-actor/2059915/2 "2024-10-09T10:22:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [October 9, 2024, 10:45am UTC](https://forums.unrealengine.com/t/how-to-delay-or-ignore-components-destruction-after-destroy-actor/2059915/3 "2024-10-09T10:45:41Z")

</div>

What is approaches?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 9, 2024, 11:24am UTC](https://forums.unrealengine.com/t/how-to-delay-or-ignore-components-destruction-after-destroy-actor/2059915/4 "2024-10-09T11:24:29Z")

</div>

> [@turbotanaka](#):
>
> Is there a way to delay the destruction

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?

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [October 9, 2024, 12:22pm UTC](https://forums.unrealengine.com/t/how-to-delay-or-ignore-components-destruction-after-destroy-actor/2059915/5 "2024-10-09T12:22:10Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 9, 2024, 12:24pm UTC](https://forums.unrealengine.com/t/how-to-delay-or-ignore-components-destruction-after-destroy-actor/2059915/6 "2024-10-09T12:24:22Z")

</div>

> [@turbotanaka](#):
>
> Very primitive

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

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 8, 2024, 12:24pm UTC](https://forums.unrealengine.com/t/how-to-delay-or-ignore-components-destruction-after-destroy-actor/2059915/7 "2024-11-08T12:24:53Z")

</div>

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