- Home /
Question by
smeffletree · Feb 25, 2014 at 09:52 PM ·
animatorprogramminganimator controller
Animator equivalent of animation.isPlaying?
Is there some way to determine whether an animation is playing when using the Animator component, or whether the object is playing no animations?
Comment
Answer by SirCrazyNugget · Feb 25, 2014 at 10:09 PM
You could use GetCurrentAnimatorStateInfo
var stateInfo : AnimatorStateInfo = animator.GetCurrentAnimatorStateInfo(0); //0 = base layer
Your answer
![](https://koobas.hobune.stream/wayback/20220613134727im_/https://answers.unity.com/themes/thub/images/avi.jpg)