I cannot switch the current animation state to another state immediately.
I am leaning a 2D Parkour game project recently days.I want to change the current animation state to another state when the conditions are satisfied in the game.Now the problem is that the animation state cannot switch to the next state immediately,the current animation state will continue 2 or 3 seconds before current state switch to another state .The code and condition logic are right.I has thought of this problem a few days,but I still cannot solve it now.My edition is 5.2.1.Thanks for your solution.
Inside your animator window, take a look inside your animations if it doesn't have "Has Exit Time" checked, just uncheck that option.
http://docs.unity3d.com/$$anonymous$$anual/class-Transition.html
EDIT: Also, if you are a begginer, here is a little guide:
https://community.mixamo.com/hc/en-us/articles/203879268-Unity-$$anonymous$$ecanim-Animation-Basics
Your answer
![](https://koobas.hobune.stream/wayback/20220612060515im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Mecanim, get state percent complete when a transition occurs? 0 Answers
Animation State of Controller not showing in Inspector when clicked 10 Answers
Animator Override controller SubstateMachine issue 0 Answers
Animation "pops back" to frame zero after leaving the animation controller state playing it? 1 Answer