How does this happen in an animation transition?

So I’m making a 2d game and I’m transitioning animations from jumping to idle. However the transition never happens. I went to investigate and found this head scratcher in the transitions inspector.


As you can see in the window that shows how the animations line up in the transition the jumping animation isn’t there, just the Idle one. This has to be why the transition doesn’t happen.
How does this happen and how do I fixed it?

Your transition time is 0 and the Exit Time is 0 as well. This basically means that your PlayerJump should transition instantaneously to PlayerIdle - this is also what you seen in the graph.

Have you set IsJumping parameter to false? Looking at your screenshot it’s the only condition that you have in your transition.

But I have had many animations with 0 transition and exit time and they don’t come out like that when I add a condition. Now it’s happening in other animator assets and even sometimes doesn’t have a graph at all just asks for a condition. I have never seen this in years of fooling around with unity. Is this a glitch? It only seems to happen with short animations like with one frame, or sometimes too.

Transition and Exit Time set to 0 should make the transition immediate. Have you tried debugging the animator behavior? Is the bool parameter set correctly?

I don’t think I follow, can you explain it a little bit more?

I didn’t understand it can you explain me in details?