Hello, I've created 2 animations on my prefab. In my Animator window I created something like this: When I start the game, the animation is looping from Idle to Jump, but I want to keep my character in idle and fire jump action on some keystroke. How can I do that please? Thanks in advance and sorry for noob question...
I'm interested in something similar -- my animation always auto-plays. In previous versions of the Animation system I could simply turn auto-play to false and then control the start and stop through code. I guess I could add a script that set auto-play to false on Start(), but I was hoping there was a way to do this through the editor? Thanks in advance for any help!
You can add this script to your Lion GameObject... Code (csharp): public Animator animator; // Use this for initialization void Start () { animator.speed = 0; } ... and then drag-drop your Animator unto the animator field. This feels like a hack thou, hopefully someone from Unity can tell us how to set an animation to not auto-play.