# Adding and attaching a skeletal mesh component at runtime

**URL:** <https://forums.unrealengine.com/t/adding-and-attaching-a-skeletal-mesh-component-at-runtime/449126>\
**Category:** World Creation\
**Tags:** skeletalmeshcomponen, attach-to-component, unreal-engine, Physics, question\
**Created:** [May 17, 2019, 2:22pm UTC](https://forums.unrealengine.com/t/adding-and-attaching-a-skeletal-mesh-component-at-runtime/449126 "2019-05-17T14:22:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon22837948](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon22837948](https://forums.unrealengine.com/u/anon22837948)\
**Post date:** [May 17, 2019, 2:22pm UTC](https://forums.unrealengine.com/t/adding-and-attaching-a-skeletal-mesh-component-at-runtime/449126/1 "2019-05-17T14:22:30Z")

</div>

Hi fellow UE4 users, I’m wondering if I’m missing something here. Cutting a long story short, I have a skeletal mesh of a hat with a tassel. I want the tassel to react to physics and I also want to be able to attach this at runtime (with Simulate Physics set to true on the Add node). So I make the following graph, and if I call it from the Constructor Script graph, it works fine.

 ![277116-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/8/dc8259b2e524156a033e58f9e7adfded9971f770.png)

**BUT** if I instead remove the call from the constructor, and just call it at any point during runtime, the resulting physics is extremely unstable and the tassel jumps all over the place for no good reason. Again: it’s totally fine if I just call it during the construction script.

I’m hoping I’ve missed some kind of “re-register component node” that I should be calling at the end, but so far I’ve found nothing.

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![anon22837948](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon22837948](https://forums.unrealengine.com/u/anon22837948)\
**Post date:** [May 21, 2019, 9:42am UTC](https://forums.unrealengine.com/t/adding-and-attaching-a-skeletal-mesh-component-at-runtime/449126/2 "2019-05-21T09:42:02Z")

</div>

So playing around I found a way to make it work -

1. Leave the skeletal mesh asset-reference blank on the “Add Skeletal Mesh Component” node
2. Attach it to the component with the socket.
3. **Now** set the skeletal mesh.
4. And have it simulate physics.

I guess it’s a quirk of this version of the engine, not sure if it is still a problem in version 4.21 and above.

 ![277501-capture2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/d/9adc6541753765400f2927a076f242d7357af9fe.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5417623e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5417623e](https://forums.unrealengine.com/u/anonymous_user_5417623e)\
**Post date:** [August 13, 2020, 12:34pm UTC](https://forums.unrealengine.com/t/adding-and-attaching-a-skeletal-mesh-component-at-runtime/449126/3 "2020-08-13T12:34:31Z")

</div>

Thank you so much! very helpful to me.
