How can I play an Animation once via script and then let the Animator component do his work ?

Hey I’m currently working on a game in witch I want my player to be animated with the animator, but sometimes I want to use the fonction AnimatorComponent.Play(“AnimatioName”);
but when I use this the animation play once and freeze at the last frame.
So I’m stuck with the same Frame during the rest of the game.
How can I enable the animator back so it can do his work after the animation plays ?
Thanks for the Help :slight_smile:

When an animation ends, by default it will stay at the last frame (unless your animation can loop on itself).

You has to add a transition to another animation at the end of the animation.

You can do it manually in the animator component, or you can add an event on the last frame of your animation that call a method in your script that play another animation.