x


Activate children

Okay I have pretty much what I needed done so far, and Now I just need to know what the complete script is to activate or deactivate the children from a game object. If you know please tell me I have only 2 weeks left to get this project DONE!

more ▼

asked Mar 29 '10 at 09:52 AM

Trevor 1 gravatar image

Trevor 1
45 10 11 17

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

1 answer: sort voted first

There's a built-in function in the Unity API to do this for you:

GameObject.SetActiveRecursively

(note, this activates/deactivates the children and the object itself - i.e. not just the children)

more ▼

answered Mar 29 '10 at 10:52 AM

duck gravatar image

duck ♦♦
41.4k 95 152 415

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

x5275
x191

asked: Mar 29 '10 at 09:52 AM

Seen: 6367 times

Last Updated: Mar 29 '10 at 09:52 AM