x


Change the color of a child

Hi! Here's my problem, I have a rigidbody, it contains a determined number of childrens (without rigidbody). I want when the player passes de mouse over, the child change its color. But OnMouseOver don't work if I have a rigidbody attached to the parent.

Any solution? Thanks!!

more ▼

asked Oct 06 '10 at 07:11 PM

Ezel gravatar image

Ezel
1 2 2 3

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

1 answer: sort voted first

Attach the script to the parent not the child. you would also have to get it to only affect that specific object.

more ▼

answered Oct 06 '10 at 08:51 PM

Ed 1 gravatar image

Ed 1
141 3 4 10

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

x1781
x807
x504
x407
x379

asked: Oct 06 '10 at 07:11 PM

Seen: 1617 times

Last Updated: Oct 06 '10 at 07:11 PM