animation speed -1 don't work


i used

function Update () { this.animation.Play("animaCubo"); this.animation["animaCubo"].speed = -1; }

But animation don't back, the mesh stay stop. what am I doing wrong?

To play an animation backwards, you also have to set the time from the end of the animation(rather than the beginning), try this:

animation["animaCubo"].speed = -1;
animation["animaCubo"].time = animation["animaCubo"].length;

Place all animation overrides in LateUpdate as opposed to Update.