Hey guys , I encountered a very weird bug of transition exit time
My transition from the state has only one condition , which is a bool “L1”, and it has exit time time 0.5,
with transition duration 0. The state should transit to “idle” if L1 is false , and “L1” is set to true if clicking left mouse button.
The animation has one event “setL1false” which simply set the bool to fasle. If this gets called before the exit time 0.5 , everything is just fine, but if it gets called after 0.5 , then some weird behaviors appear. It plays the entire animation and stuck at the end for a moment.(Check the video)
I figured out an another way to avoid it by using animator.crossfade in OnStateUpdate, in case if anyone need a solution for that.
1 Like