Latency in Mecanim?

Hi,
I think I found a latency issue in mecanim.

As an example;

If I have two states:
Empty
and
Melee

I enter melee if bIsAttacking == true and bIsMelee == true

I exit melee if bIsAttacking == false.

If I set bIsAttacking == false I don’t think mecanim is exiting back to “Empty” until the next update.

Are mecanim state transitions poll based rather then event based? (E.g. when conditions are met to exit a state is an event fired or does mecanim check on the next update.) I’m really hoping its event based as polling will make transitions and state graphs a mess. From what I can tell thus far its a poll based system.

Thanks!

I just ran some tests. Unless I’m missing something Mecanim does not seam to be event based and thus can introduce a frame of latency when transitions are requested. In fact from what I can tell this transition
Melee → LogicNode → Ranged
would take at least two frames.

Am I missing something?