Zero Duration States
Three related state machine questions:
1) Why does my state randomly take a whole second to exit when I have an exit time of 0.01 and no motion selected?
(i'm using this state to trigger a StateMachineBehavior to handle some logic) Most of the time it passes through the state quickly... seemingly randomly, it'll just stop on the state and I'll see the animator process the state for about a second... and then it'll continue. Does this indicate the exit times in states are unreliable in general... or only when the times are set really low?
2) Is it possible to make a state that is entered and exited with no exit time and no cludge (always true) parameter?
3) Is it possible to make a state that is entered and exited instantly, within the same frame.
Answer by juan-jo · Jan 08, 2017 at 01:51 PM
Same problem here (Mac, 5.4.0f3)
Even with a fake one frame motion, still takes the whole second randomly.
StateMachineBehaviour is a nice idea but I find difficult to make them work because of little details like this.
Your answer
Follow this Question
Related Questions
InvalidOperationException when peeking state in custom game editor 0 Answers
Animation is not playing eventhough state shows it 0 Answers
Mecanim: 2-step transitions in a single update (skip intermediate state) 0 Answers
Animator MatchTarget Problem On OverRide Animation Layer (Has GIF) 0 Answers
How to pass the variable of a current state machine behavior 0 Answers