- Home /
Waiting for condition to be true for X amount of time before allowing transition in animator?
I'm wondering if there's a way to require that a condition be true for a certain amount of time before a transition will begin, otherwise cancelling the transition?
It's fairly trivial to do in code if you wanted, to avoid clogging up your animation system.
Otherwise, you could try adding a state that is an 'empty' animation the length of your delay. At the end of that empty animation you can then have another set of transitions. But this would only really check the condition at the transition points - if the user releases their control in between those transition points and then presses again, it wouldn't catch the release.
Your answer
Follow this Question
Related Questions
How to trigger an animator transition after the current animation has finished? 1 Answer
Animator transitions bug?,Animator transition bug? 3 Answers
Is possible to choose the time when a state changes, during a transition in Animator? 0 Answers
Is there any way to make the default animation transition instant? 2 Answers
How can I make a state pass after a reversed state? 0 Answers