- Home /
Question by
noob22 · Jan 11, 2012 at 01:19 AM ·
gameobjectapiactivefalse
I want some gameobjects are all unactive!
I want some gameobjects are all unactive! How to do it by script? Gameobject.active=false; How to use this script to let a lot of Gameobjects to be unactive?
Comment
Best Answer
Answer by Eric5h5 · Jan 11, 2012 at 01:47 AM
Have an array of GameObjects, and set them all to false by iterating through the array.
I have solve it by GameObject.SetActiveRecursively.Thank you the same!
Your answer
Follow this Question
Related Questions
Disable/Enable Script or Add/Remove? 1 Answer
Referencing children of an instantiated object. 1 Answer
Generic way to get properties on Component? 3 Answers
How to use if statement properly 1 Answer
Is Editor API for making plug-in? 1 Answer