x


How to make child not to be affected by parent's animation ?

Hello everyone, I have an object which has an animation, when I play it, that object's child gameObjects are animating to, so I don't want the child to animate, is there any way to make child not to animate while the parent object animates ? Thanks :)

more ▼

asked Feb 13 '12 at 09:54 PM

Inan Evin gravatar image

Inan Evin
166 37 58 64

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

1 answer: sort voted first

while animating you can tell the child, transform.parent = null; then when the animation is over you can say transform.parent = oldParent.transform;

more ▼

answered Feb 13 '12 at 10:07 PM

Anxowtf gravatar image

Anxowtf
1.6k 22 27 37

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

x3793
x423
x411

asked: Feb 13 '12 at 09:54 PM

Seen: 820 times

Last Updated: Feb 13 '12 at 10:07 PM