ive made this
public GameObject stars;
stars.active = false;
and all my game objects are grouped into stars, when i click to hide them, just stop the scripts(rotation etc.) but not hide the entire group.
is there another form to send the code to hide the entire content?
You can use GameObject.SetActiveRecursively(false)
http://docs.unity3d.com/Documentation/ScriptReference/GameObject.SetActiveRecursively.html
This sets a gameObject and all its children to activeor inactive.
so :
stars.SetActiveRecurisvely(false);
Should do the trick
EDIT: sorry the wording of your question makes it look like you wanted the above at first however after reading it over again I am thinking you might be wanting broadcast message
Hoo… thanks a lot, i ve used GameObject.SetActiveRecursively and works perfectly…
is there another option to make this change with a fade? well, thats a plus.
thanks a gain