- Home /
animation speed no work
idont know what is wrong with the animation this time when i write
animation["R2i"].speed=2;
the animation get no work for me Despite useing the speed all time and it works with other animation in the same script when i make the speed of the animation the animation gets no work what should i do?
Please be more accurate to describe what is happening. Does the animation play at the wrong speed, or doesn't it play at all ?
So where do you actually play the animation? Does it work with a speed of 1.0? If not how is this even related to speed?
Are you sure the animation even works or is correct? Open the Animation window in Unity, select the object that has the animation attached and select the desired animation in the animation window. Click the play button in the animation window. The animation should play once. Does it work there? If not the animation is faulty / wrong imported or simply doesn't work.
Answer by whydoidoit · Jun 20, 2012 at 05:12 PM
Per @Bunny83 Make sure that the animation is .enabled = true and that .weight > 0. You can do this by using Play() :)
And you are not playing another animation after? Or crossfading before?
Are you playing a different animation - playing an animation stops other animations.
istop the other animation not what i want to play so if u still dont know the problem i can upload all of the animation script
Your answer
![](https://koobas.hobune.stream/wayback/20220613073035im_/https://answers.unity.com/themes/thub/images/avi.jpg)