GameObject.SetActiveRecursively Manual     Reference     Scripting  
Scripting > Runtime Classes > GameObject
GameObject.SetActiveRecursively

function SetActiveRecursively (state : boolean) : void

Description

Sets the active state of this and all the game objects children to state.

JavaScript
gameObject.SetActiveRecursively(true);