Adding and attaching a skeletal mesh component at runtime

anon22837948
Fri, 17 May 2019 14:22:30 +0000
World Creation

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.

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

3 posts - 1 participant