MECANIM: How to stop the "Any State" transition being called multiple times to same state

I have a player that is transitioning from “Any State” to a “Jump In Air” state with the condition of “Distance To Ground” > 3. This works well for when the player walks off of an edge etc, as instead of the “Jump Start” animation being played it just goes straight to the “in Air” loop, however the condition is true during the animation so it is being called multiple times and the animation doesn’t play in its entirety.

2 Likes

THE FIX:

  • Expand the “Settings” in the inspector with the Any State - > Jump in air selected.
  • Deselect the “Can Transition To Self” toggle.
33 Likes

saved my day…

God…

Fixed it, thanks alot!

Holy sh… after so many years I too end up here with the exact same situation. Thanks!

Saved my day in 2023. Thank you!

Please don’t necro posts, use the like button to show appreciation instead.

Thanks.