Noob animation question

I have created several objects and created clips in the Animation (legacy) tab.
They all play when I press play in the Animation tab.
All are set to ‘loop’.

But, when I press play for the game, none of the objects move.

How do I get them to move in the game ?

Thank you.

You can see my settings, and model walking-- the game controls are all red since this is playing from the Animations tab.
But when I exit Animation tab and hit ‘play’ to play game, there is still no animation.


“Whats your script look like?”

I have a simple script:

When the script is disabled, just two errors:

-The AnimationClip ‘walk’ used by the Animation component ‘Zombie’ must be marked as Legacy.

-Default clip could not be found in attached animations list.


With the script enabled, two more errors:

The AnimationClip ‘walk’ used by the Animation component ‘Zombie’ must be marked as Legacy.
NewBehaviourScript:Main() (at Assets/Characters/Test/NewBehaviourScript.js:1)

The animation state walk could not be played because it couldn’t be found!
Please attach an animation clip with the name ‘walk’ or call this function only for existing animations.
NewBehaviourScript:Main() (at Assets/Characters/Test/NewBehaviourScript.js:1)

As @Tarlius said, you have to set the check-mark on the “Play Automatically” check-box from “Animation” Component attached to your gameobject.

Make sure “Animations” property is not “None” in the Animation component

Did you place it in the animations folder? If it can’t find it, it’s because it’s not in the right folder or the provided directory is wrong. Something different to try. Not sure if it’ll work but instead of calling the animation through script, drag-n-drop and see if it plays.

I know, it must be too late. You have too select your animation and switch the inspector to Debug. To switch to Debug mode, you just have to right-click on the inspector tab. Then you just have to change Animation Type to 1 (Legacy Mode).

Hope that will be useful for someone.