- Home /
Question by
ExtremePowers · Feb 06, 2015 at 04:40 PM ·
animationruntimebone
Animation problem
My characters whole arm wont animate at all, if I attach a gameobject to it at runtime.
var bone = GameObject.FindGameObjectWithTag("Hand");
CurrentWeapon = GameObject.Instantiate(CurItem.Gameobject,Vector3.zero,Quaternion.identity);
CurrentWeapon.transform.parent = bone.transform;
CurrentWeapon.transform.localPosition = Vector3.zero;
CurrentWeapon.transform.localRotation = Quaternion.identity;
CurrentWeapon.transform.localScale = Vector3.one;
Comment
Best Answer
Answer by ExtremePowers · Feb 06, 2015 at 05:17 PM
I just had to disable root motion on the animator.
Your answer
