x


enabling / disabling child objects

How do I enable / disable child gameobjects? I don't want to turn the mesh renderer off. Neither do I want to destroy the gameobjects. I just want to disable them.

more ▼

asked Apr 09 '11 at 02:27 AM

networkZombie gravatar image

networkZombie
244 9 11 20

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

1 answer: sort voted first

Set the .active member to false for each one. Code in the script reference

more ▼

answered Apr 09 '11 at 02:42 AM

DaveA gravatar image

DaveA
26.5k 151 171 256

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

x2088
x798
x215
x134

asked: Apr 09 '11 at 02:27 AM

Seen: 1857 times

Last Updated: Apr 09 '11 at 02:27 AM