- Home /
This post has been wikified, any user with enough reputation can edit it.
AddMixingTransform Help
Hello, I have a problem with AddMixingTransform. Here is what I'm trying to do: I took the soldier model from unity's bootcamp example. I want to make him walk up some stairs while his being crouched, but doing in by animation only (not pressing any keys, making some sort of a movie). So I took the crouch walk animation and made an animation just moving the pelvis up the stairs. Here's my Code:
public Transform mixTransform;
// Use this for initialization
void Start () {
animation["MovingUp"].AddMixingTransform(mixTransform);
animation["CrouchWalkWithInnoeye"].layer = 1;
animation.CrossFade("CrouchWalk");
animation.CrossFade("MovingUp");
}
What happens is that only the "CrouchWalk" animation is playing and the soldier is not moving. Will appreciate any help.
Comment