Why is my animator not playing the controller?

Why is my animator not playing the controller?

The warning Animator is not playing an AnimatorController also appears, when the Animator somehow lost the reference to the Animator Controller asset. You can see it here in screenshot, where the Animator value for Controller is “None”. Just drag in the missing Animator Controller asset from your project view.

How to focus on an item in the animator controller?

To focus on an item in the Animator Controller window, select one or multiple states (click or drag a selection box around the states you wish to select), then press the F key to zoom in on the selection. Focus on selected states. Press the A key to fit all of the animation states into the Animator Controller view.

How do you change zoom in animator controller?

To modify the zoom during Play Mode, follow these steps: Enable Auto Live Link in the Animator Controller window. Click the Play button to enter Play Mode. Click Pause. In the Animator Controller, select the state or states you want to zoom into.

How do I create an animator controller in Unity?

Unity automatically creates an Animator Controller when you begin animating a GameObject using the Animation Window, or when you attach an Animation Clip to a GameObject. To manually create an Animator Controller, right click the Project window and click Create > Animator Controller.

Why does animation not play in preview mode?

The Animator Controller is also very simple, with this animation being attached to my default state: The animation plays just fine in the preview mode of the Animation window. But when I run my game, the animation does not play at all, the sword just stands still instead of moving.

How to tell when animation is finished playing without..?

I think those answers were for older version of unity and older just playing animation clips not using the new Animator component. There must be a better way to do this. If you have named all of the attacking states identically, you can check the name of the currently playing animation:

How can I get unity animation to work?

It turns out that all I needed to do was turn off “Apply Root Motion” on my Animator for it to work properly. In case you are testing out on an Android Device I would suggest you to go to Build Settings > Player Settings > Other Settings > Uncheck “Static Batching”.