BUG With Exit Time

I’m using Unity 5.1.3f1

I have a transition that is not functioning properly. For the sake of clarity I have attached a screenshot, but in summary it has an Exit Time = 1 and depends on a boolean parameter being equal to true.

My expectation is that after the (non-looping) animation ‘In’ has been completed, if at any time Shown is set to true, it should immediately start the Pending animation.

However, when Shown = true, there is a delay of between 0 and ~1.6 seconds before it switches to the Pending animation. Not coincidentally, this happens to be the length of the ‘In’ animation!

So, what seems to be happening is that internally some kind of looping is taking place, and rather than every frame, it’s only checking the Shown condition each time the loop completes. In other words, it’s only checking the Shown condition every 1.6 seconds.

I have tested this by pausing the game and manually advancing the frames. I’m very open to the idea I have misunderstood how the state machine functions and that perhaps I’m missing something. But otherwise, this appears to be a bug.

1 Like

Can I please have some help with this issue?