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);

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
gameObject.SetActiveRecursively(true);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
gameObject.SetActiveRecursively(true)