ANimation doesn't rewind on animation.Stop

Hi guys. What am I doing wrong? I have a simple Jump animation, runs with Input.KeyCode(Space):

function Update () { if(Input.GetKey(KeyCode.Space)){ animation.Play("JumpAnim1"); } if(Input.GetKeyUp(KeyCode.Space)){ animation.Stop("JumpAnim1"); } }

Scriptin Reference says: "Stopping an animation also Rewinds it to the Start." Animations starts and stops but never rewinds? No matter the wrap mode.

have you tried Animation.Rewind?

Hi, You want to play backwards the animation when the character start to fall down to the ground?, if that's the case you must use a function to change the animation.speed from a positive value to a negative value this way you can play an animation backwards.

Try to use a limiter to achieve this animation control if you don't your animation will be in loop, if your are using the loop wrapmode for your animations and don't forget to use the animation.CroosFade() to blend the animations.

Ok, solution is just simply remove "if(Input.GetKeyUp..." part. Animations finishes playing and stops. It is very short animation so it does no matter it doesn't stop immediately. Most important is that my caracter doesn't freeze in strange pose. Anyway thanks for your answers AngryGerman and 3DMagicVR :)