- Home /
Perform an action on animator state transition?
I'd like to call some function on script when the animator switches to another state. So I want to do something like
-animator state is "Wait" (playing looping idle animation) , some value is set in the animator, animator transitions to "Attack (plays attack animation)" - then when attack animation is completed, animator state goes back to wait, but does something like 'call function SomeScript.AttackActionCompleted'.
Is that possible to do? Or do I have to do... something ... with AnimationEvents? (I'm not exactly sure how those work)
Your answer
Follow this Question
Related Questions
Animating multiple objects that should interact with eachother 0 Answers
State Machine Behaviour together with Animation Events 1 Answer
Is possible Jump/advance to specific animation frame/time on the Animator Controller? 0 Answers
mecanim stuck 0 Answers
Animator Transitions 'which is not compatible with condition type' 2 Answers