x


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?

more ▼

asked Jun 20 '12 at 02:18 PM

Nedoon gravatar image

Nedoon
273 1 8 22

Please be more accurate to describe what is happening. Does the animation play at the wrong speed, or doesn't it play at all ?

Jun 20 '12 at 02:31 PM Berenger

doesent play it at all

Jun 20 '12 at 02:53 PM Nedoon

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?

Jun 20 '12 at 03:53 PM Bunny83

are you calling animation.Play (); ?

Jun 20 '12 at 04:06 PM GutoThomas

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.

Jun 23 '12 at 10:39 AM Bunny83
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Per @Bunny83 Make sure that the animation is .enabled = true and that .weight > 0. You can do this by using Play() :)

more ▼

answered Jun 20 '12 at 05:12 PM

whydoidoit gravatar image

whydoidoit
33.6k 14 23 105

yes all of thats is true and still no work

Jun 20 '12 at 08:17 PM Nedoon

And you are not playing another animation after? Or crossfading before?

Jun 20 '12 at 08:21 PM whydoidoit

after setting the speed i play animation!

Jun 20 '12 at 09:01 PM Nedoon

Are you playing a different animation - playing an animation stops other animations.

Jun 20 '12 at 09:05 PM whydoidoit

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

Jun 20 '12 at 09:38 PM Nedoon
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3929
x372

asked: Jun 20 '12 at 02:18 PM

Seen: 444 times

Last Updated: Jun 24 '12 at 03:51 AM