Dumb question about Unity animation tool

Well, I’ve read the manual section about this and built up a simple animation with the editor.
OK. It plays ok in the editor.
Now when I start the game the animation is not playing though.
Is it necessary to “launch” it with a script? No way to have it start immediately when the game runs?

Sure, just make sure you can see the animation in the ‘Animation’ section in the inspector and attach a script with:

animation.Play(“Animation_Name”);

If you don’t want it to play automatically then uncheck “Play automatically” in the inspector.

OK I didn’t understand I have to put the name of the animation saved into the script, it works :wink:

Thank you!

I have a little issue though: at start of game simulation I see the FINAL position of the animation for some frames, then it starts ok. Is it possible to avoid this?

GODLIKE - do the incorrect frames show up when you run it as a build? (standalone or web based)

If it only happens when you run it inside the editor it may be a visual artifact. (the scene takes a moment to set up)