|
Basically from script, I can set active to false for a game object, but can I do it in sucha way that all its children also get de-activated? Iterating through children is cumbersome and involves al ot of duplicate code...
(comments are locked)
|
|
You can use SetActiveRecursively, like this: If it's other object, just use its GameObject reference:
(comments are locked)
|

Be sure to tick and vote for Aldona's awesome and fast answer!