# Actor detaches from component when duplicated 

**URL:** <https://forums.unrealengine.com/t/actor-detaches-from-component-when-duplicated/2735140>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [May 26, 2026, 11:42pm UTC](https://forums.unrealengine.com/t/actor-detaches-from-component-when-duplicated/2735140 "2026-05-26T23:42:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 26, 2026, 11:42pm UTC](https://forums.unrealengine.com/t/actor-detaches-from-component-when-duplicated/2735140/1 "2026-05-26T23:42:45Z")

</div>

I have a component that can attach its self to other components based on the proximity to another static mesh. It does this after the actor (that it’s a part of) is moved. This seems to work fine. If you duplicate the attached actor, it will become detached if it and the actor/component it’s attached to are not in the persistent level.

Using the project I provided, you can reproduce this by…

1. Open TestMap.uproject
2. Make sure that TestMap\_B is the active map.
3. Grab the blue cube (BP\_AutoAttachActor) and move it close to the cube underneath it (BP\_SpinningActor).
4. Once you see it’s attached, PIE. The blue cube appears attached to the spinning cube.
5. Stop the PIE instance and duplicate the blue cube. Alt-Drag and Ctrl+D seem to produce the same results.
6. Place the new cube onto one of the spinning cubes.
7. Start a PIE instance.
8. The original cube is detached, but the new cube is attached.  
[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 26, 2026, 11:42pm UTC](https://forums.unrealengine.com/t/actor-detaches-from-component-when-duplicated/2735140/2 "2026-05-26T23:42:48Z")

</div>

**Steps to Reproduce**  
Hello!

I’m running into an issue where an actor is becoming detached when it’s duplicated and in a sub-level.

To start off, I have a component that can attach its self to other components based on the proximity to another static mesh. It does this after the actor (that it’s a part of) is moved. This seems to work fine. If you duplicate the attached actor, it will become detached if it and the actor/component it’s attached to are not in the persistent level.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 8, 2026, 5:22pm UTC](https://forums.unrealengine.com/t/actor-detaches-from-component-when-duplicated/2735140/3 "2026-06-08T17:22:41Z")

</div>

Just pinging this thread to make sure someone sees it.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/1225280_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [June 8, 2026, 7:35pm UTC](https://forums.unrealengine.com/t/actor-detaches-from-component-when-duplicated/2735140/4 "2026-06-08T19:35:27Z")

</div>

Hi,

I had a look at the project and I think the problem is that BP\_AutoAttachActor is part of the TestMap while it’s being attached to BP\_SpinningActor that is part of TestMap\_B. This is resulting in a bug where the BP\_SpinningActor instance from the Editor world is being dragged in PIE.

[Image Removed]

If I duplicate BP\_AutoAttachActor, the new instances is part of TestMap\_B and properly attaches to the right instance, ie the PIE one.

[Image Removed]

I’ll have a colleague validate the information but I’m pretty sure that Actors can be attached to instances that are not in the same level.

Regards,

Martin

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 8, 2026, 7:50pm UTC](https://forums.unrealengine.com/t/actor-detaches-from-component-when-duplicated/2735140/5 "2026-06-08T19:50:29Z")

</div>

Sorry, I meant to move that into TestMap\_B. If you move it to TestMap\_B, save the maps, move it so that it attaches, and hit play. It’ll look attached correctly. If you re-open the map, it’ll be snapped to the center of that box it was attached to.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 8, 2026, 8:02pm UTC](https://forums.unrealengine.com/t/actor-detaches-from-component-when-duplicated/2735140/6 "2026-06-08T20:02:38Z")

</div>

I’ve uploaded a video illustrating the issue and how to reproduce it.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/1225280_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [June 12, 2026, 2:02pm UTC](https://forums.unrealengine.com/t/actor-detaches-from-component-when-duplicated/2735140/7 "2026-06-12T14:02:21Z")

</div>

Hi,

I ran some extra tests and I’m not sure that you can preserve that type of attachment through a save\load cycle. You might get more success if you attach to a socket in the Parent StaticMesh but I doubt you want to add sockets to everything. I traced the problem back to the calculation of the transform at load time. It appears that some of the hierarchy is not properly initialized but I couldn’t find a way to force an update.

You might have to store the desired transform in the UAutoAttachComponent and restore it after the initialization.

I should not that attaching to the GetDefaultAttachComponent (the rootcomponent of the Hit Actor) does properly restore the transform. I suspect that the Parent Actor has not been properly initialized at the attachment time and its child ComponentToWorld is not valid at that point.

I reached out to a few colleagues that are more familiar with that part of the engine. I’ll report back if they have some suggestions.

Regards,

Martin

[Attachment Removed]
