two lines:
animator.Play(“xxx”);
animator.GetCurrentAnimatorStateInfo(0).IsName(“xxx”);
and then it returns FALSE???
I dont know why is this,please help me !!!
animator.Play(“slash1”);
Debug.LogError(animator.GetCurrentAnimatorStateInfo(0).IsName(“slash1”));
yield return new WaitForEndOfFrame();
Debug.LogError(animator.GetCurrentAnimatorStateInfo(0).IsName(“slash1”));
and just wait for a frame it changes false to true
i dont know how to express my holly shit
Yeah, that’s just one of the many stupidly designed things in the Animator Controller system. They don’t consider it a bug, it’s intentional because nothing internal is supposed to change until the next time the Animator actually gets updated.
1 Like