[HELP PLEASE] How can i check if an animator transition from animation to animation has finished?
Answer by griddle151 · Nov 22, 2017 at 01:07 PM
Well, to check if it has finished, you can probably do it two ways. For the animator to be in the "shot" state, the transition would have finished, so you can call myAnimator.GetCurrentAnimatorStateInfo(0).IsName("shot")
If you want to check if the animation transition is currently in progress, which is what I was looking for when I found this question, you can do myAnimator.GetAnimatorTransitionInfo(0).IsName("flight -> shot")
These will return true or false depending on the current state of the animator.
Answer by Wappenull · Jun 15, 2021 at 01:57 PM
Can also check anim.IsInTransition()
According to this: https://forum.unity.com/threads/strange-delay-with-getcurrentanimatorstateinfo.507498/
Answer by JaamySk · Dec 29, 2021 at 08:40 PM
Also you can check @jaamySk answer here : https://answers.unity.com/questions/1112954/how-to-check-if-animator-is-in-transition.html?childToView=1878669#answer-1878669