I need to set one specific animator controller’s avatar by script, anyone know how its done?
void Update()
{
Animator myAnimator = GetComponent<Animator>();
//This is done to set the proper avatar so animations will work
if(skinModel == "Cube One")
{
myAnimator.avatar ;
}
else if(skinModel == "Cube Two")
{
myAnimator.avatar ;
}
}