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

function SetActiveRecursively (state : bool) : void

Description

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

gameObject.SetActiveRecursively(true);