- Home /
Animate multiple Humanoid Meshes with 1 Animator
I have two *Skinned Mesh Renderer*s sharing the same bone structure, practically speaking I have
Mesh A: Player model
Mesh B: Clothing model being an invisible "Mesh A" with clothing attached (model-wise)
How do I animate these meshes simultaneously?
I thought of either syncing two identical Animators on each Mesh or making the main Animator recognize multiple identical meshes but couldn't get any of that to work.
Please, help me out! I've been losing my head over this, it feels so simple yet unattainable.
Thanks for your time.
Answer by henry_jvx · Jun 15, 2017 at 05:31 AM
use animator parameters to set animations states and trigger it in both animators at the same time. i.e:
void Run(){
firstAnimator.SetBool("Run", true);
secondAnimator.SetBool("Run", true);
}
void Stop(){
firstAnimator.SetBool("Run", false);
secondAnimator.SetBool("Run", false);
}
That would take a lot of work for multiple, run-time added, pieces of mesh sharing the same animator though
Your answer
![](https://koobas.hobune.stream/wayback/20220612124218im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
SkinnedMeshRenderer saving from GameObject 1 Answer
Trouble replacing a mesh on a pre-existing model 0 Answers
Batching between copied meshes 1 Answer
Multiple skinned mesh characters. 2 Answers