- Home /
Change Transform through script ... while animation playing? Animator Controller with Mixamo Characters
Hello everyone,
I am trying to affect the transform.rotation of my character's RIGHT HAND (to aim a pistol) but the animator controller doesn't let me do so, even if there is an AVATAR MASK on the layer that excludes the right arm. I suspect the problem is the animator controller because if I disable it, the hand does rotate as I want it to.
The animator has apply root motion UNCHECKED, also, I tried calling the code in Late Update (as some answers have suggested), but with no result.
I even tried setting the entire rightarm.SetActive(false), but the right arm is still there at run time, presumably because of the way that the mixamo body parts are parented. In any case, nothing seems to affect the body parts of my character while an animation controller is active and an animation is playing. Help please, I would like change my character's transform while an animation is playing simultaneously.
I have the animation controller inside the parent, if I tried placing the animator inside all of its children, it would be impractical... I read an answer that stated that the trick was to place the animatior inside the child objects, but my character has more than 20 parts so I was wondering if there is a way to reconcile animations and transform from script