I’m not new to Unity, but this is the first time I tried to really jump into character animation. There are some weird behaviours that I consider bugs, but maybe it was my fault:
- I have a layer for idle and smile. This works, but when I add a third layer no matter what animation I put in there it doesn’t play.
- I found this problem many times, but no solution, so I’m hoping it’s been fixed by now:
If I want to play my blink clip using
void blink()
{
Animator myAnimator = GetComponent<Animator>();
myAnimator.Play("Blink"); // error layer = -1...
myAnimator.Play("Blink", 1) // I get the warning: Animator.GotoState: State could not be found
}
In both cases the animation does not play.