- Home /
Question by
Galse22 · Oct 01, 2020 at 12:24 AM ·
state-machine
How to make a StateMachine script go to the first frame on OnStateExit?
When using StateMachines, Unity remembers what frame of the animation of that behaviour you were in, so if you go again to that behaviour and your animation is not set to loop, there would just be no animations.
So, I'd like to know a way to go to the first frame of the animation when OnStateExist happens. Is there a way to do that?
Comment
Your answer
Follow this Question
Related Questions
Mecanim-Statemachine caches old version? (was: One Transition blocks other Transitions) 0 Answers
Transition Between Different Player States In Animator 0 Answers
Mecanim - State Behavior - Select motion clip to play at runtime 0 Answers
StateMachineBehaviour dropped when version was upgraded from 2017.1 to 2017.3!!! 0 Answers
Object has no problem finding instance in editor. However in build it does. 1 Answer