# How can I attach a Blueprint to a Socket in another Blueprint?

**URL:** <https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 20, 2014, 2:29pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515 "2014-08-20T14:29:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennetherwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bennetherwood](https://forums.unrealengine.com/u/bennetherwood)\
**Post date:** [August 20, 2014, 2:29pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/1 "2014-08-20T14:29:32Z")

</div>

this is similar but not same to this

> **[Attaching blueprint object to skeletal meshes socket](https://forums.unrealengine.com/questions/29028/attaching-blueprint-object-to-skeletal-meshes-sock.html)**
>
> I am trying to attach an object on a skeletal mesh using the step described in the documentation. I wanted to push it a bit further and instead of attaching a simple static mesh, i want to add an actor(blueprint with his own script) to a socket. ...

however above uses LEVEL blueprint and i want to do this entirely within a single blueprint which isnt a level blueprint?

closest ive come is to adding “child actor” in components tab and this seems to work in viewport, except attached blueprint disappears on play/simulate.

thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 20, 2014, 9:21pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/2 "2014-08-20T21:21:38Z")

</div>

Hey Bennetherwood,

As long as you have a reference to Blueprint you want to attach to your socket, you can use Attach nodes to accomplish this. Here’s an image of a simple setup for your Character Blueprint:

 ![13311-pickupitem.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/1/d3169ecb82e243489f15891583ea373c67f21e3c.png)

On whatever event you choose (L Key Event, in this case), it Gets All Actors of Class (choose whichever Blueprint you’re looking for in your level), and uses a For Each Loop to Attach Actor to Component. Array Element is Blueprint Actor, In Parent is Character’s Skeletal Mesh, and In Socket Name is exact name of Socket in your Skeletal Mesh.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![bennetherwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bennetherwood](https://forums.unrealengine.com/u/bennetherwood)\
**Post date:** [August 21, 2014, 9:53am UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/3 "2014-08-21T09:53:48Z")

</div>

I’ve tried this method but nothing gets attached, I’ve tried this on Owen in content examples with no avail, can I clarify if this would work with a blank level ? And does attached still function like blueprint or an inanimate version of blueprint ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 21, 2014, 3:12pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/4 "2014-08-21T15:12:56Z")

</div>

This will work in any level with any Blueprint. If you’re using it on something without a skeletal mesh or socket, you can leave In Socket Name blank and it will just attach to pivot point of In Parent component.

Would you attach an image of what your setup looks like in Blueprints? Keep in mind that your Get All Actors of Class node is going to search for all Actors of Actor Class you select that already exist in game, and it will not work if you haven’t already spawned Actor.

---

<div class="post-metadata">

**Author:** ![bennetherwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bennetherwood](https://forums.unrealengine.com/u/bennetherwood)\
**Post date:** [August 21, 2014, 3:19pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/5 "2014-08-21T15:19:22Z")

</div>

No I haven’t spawned actor in world, but this isn’t a case of a character maybe picking up a gun blueprint and attaching it to a socket, this is a case of adding a blueprint to another and then being able then drag that blueprint from content browser into level with another blueprint being attached to a socket, or can this not be done ?  
Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 21, 2014, 3:27pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/6 "2014-08-21T15:27:30Z")

</div>

I’m not sure I understand. Are you trying to do this during gameplay or during editing?

---

<div class="post-metadata">

**Author:** ![bennetherwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bennetherwood](https://forums.unrealengine.com/u/bennetherwood)\
**Post date:** [August 21, 2014, 3:29pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/7 "2014-08-21T15:29:29Z")

</div>

For Editing.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 21, 2014, 3:46pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/8 "2014-08-21T15:46:28Z")

</div>

Ah, okay. What I was showing above is for use during gameplay. If you’re looking to attach one Blueprint to another that has a socket, you can use Socket Snapping in Editor:

[https://docs.unrealengine.com/latest/INT/Engine/Content/Types/SkeletalMeshes/Sockets/index.html#socketsnapping](https://docs.unrealengine.com/latest/INT/Engine/Content/Types/SkeletalMeshes/Sockets/index.html#socketsnapping)

This will only work when attaching to Blueprints that have a Skeletal Mesh with Sockets already created. It will not allow you to drag a Blueprint out with another Blueprint already attached, but it will let you snap it into place pretty quickly.

---

<div class="post-metadata">

**Author:** ![bennetherwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bennetherwood](https://forums.unrealengine.com/u/bennetherwood)\
**Post date:** [August 21, 2014, 4:12pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/9 "2014-08-21T16:12:57Z")

</div>

I have tried this approach and it works for a skel mesh however for a blueprint with a skel mesh you don’t get option to attach to a specific bone/socket but I don’t know why? It just attaches it to pivot, could this be a big/lack of features ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 21, 2014, 4:28pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/10 "2014-08-21T16:28:31Z")

</div>

Hm, you’re right. Let me check in with developers this afternoon. I’ll let you know if we’re missing something or if this is something they can fix.

---

<div class="post-metadata">

**Author:** ![bennetherwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bennetherwood](https://forums.unrealengine.com/u/bennetherwood)\
**Post date:** [August 21, 2014, 4:38pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/11 "2014-08-21T16:38:35Z")

</div>

Thanks man !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 21, 2014, 8:47pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/12 "2014-08-21T20:47:54Z")

</div>

I have entered TTP# 344536 into our bug database for this issue so our developers can take a closer look at it. I will let you know when I see an update on this. Thanks for pointing this out to us!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [September 26, 2014, 6:12pm UTC](https://forums.unrealengine.com/t/how-can-i-attach-a-blueprint-to-a-socket-in-another-blueprint/291515/13 "2014-09-26T18:12:29Z")

</div>

It looks like socket snapping methods did not consider Blueprint actors. This has been fixed internally and should appear in 4.6. Thanks for your patience!
