x


How to stop animation on trigger?

I am trying to figure out how to stop animation on trigger, i've looked everywhere and i cannot find the answer, can anyone help me please? Thanks in advance.

more ▼

asked Jan 27 '12 at 07:54 PM

Matukiux gravatar image

Matukiux
1 2 3 4

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Attach a script on your trigger containing the function OnTriggerEnter, add a reference to your object with an animation, then use animatedObject.animation.Stop(); which will reset the animation. If you want to pause the animation, I suggest you look here. Good luck.

more ▼

answered Jan 27 '12 at 08:09 PM

Berenger gravatar image

Berenger
11k 12 19 53

(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:

x3807
x3343
x986
x143

asked: Jan 27 '12 at 07:54 PM

Seen: 950 times

Last Updated: Jan 27 '12 at 08:09 PM