# SpawnActorDeferred removing all other Blueprint child components

**URL:** <https://forums.unrealengine.com/t/spawnactordeferred-removing-all-other-blueprint-child-components/463913>\
**Category:** Blueprint\
**Tags:** removal, unreal-engine, component, spawning-actors, question\
**Created:** [April 18, 2020, 11:11am UTC](https://forums.unrealengine.com/t/spawnactordeferred-removing-all-other-blueprint-child-components/463913 "2020-04-18T11:11:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a72bbccf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a72bbccf](https://forums.unrealengine.com/u/anonymous_user_a72bbccf)\
**Post date:** [April 18, 2020, 11:11am UTC](https://forums.unrealengine.com/t/spawnactordeferred-removing-all-other-blueprint-child-components/463913/1 "2020-04-18T11:11:57Z")

</div>

const auto& Transform = GetActorTransform();  
ACOCorpse\* NewCorpse = GetWorld()-\>SpawnActorDeferred(CorpseClass, Transform);  
NewCorpse-\>InitializeFromActor(\*this);  
NewCorpse-\>FinishSpawning(Transform);

just calling that function doesn’t cause the issue, it’s when something is attached to the root component; in this case a UPoseableMeshComponent

```
			PoseComp->RegisterComponent();
			PoseComp->AttachToComponent(RootComp, FAttachmentTransformRules::KeepWorldTransform);

```

If I change it to regular spawning everything works fine

---

<div class="post-metadata">

**Author:** ![mrmordof](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrmordof](https://forums.unrealengine.com/u/mrmordof)\
**Post date:** [August 12, 2021, 12:25am UTC](https://forums.unrealengine.com/t/spawnactordeferred-removing-all-other-blueprint-child-components/463913/2 "2021-08-12T00:25:49Z")

</div>

Did you ever find the root cause of this? I’m running into the same situation where I have two colliders I’ve set up attached to the root component in the constructor of my actor, and SpawnActorDeferred is resulting in an actor with those two components empty.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a72bbccf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a72bbccf](https://forums.unrealengine.com/u/anonymous_user_a72bbccf)\
**Post date:** [August 12, 2021, 1:06am UTC](https://forums.unrealengine.com/t/spawnactordeferred-removing-all-other-blueprint-child-components/463913/3 "2021-08-12T01:06:56Z")

</div>

No just worked around it by not using posemesh component and copying bone transforms and/or using copy pose from mesh at the animation level from the original body and making all the skeletal meshes not dynamic but part of the default c++ class
