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

var active : bool

Description

Is the GameObject active? Activates/Deactivates the GameObject.

// Deactivates the game object.
gameObject.active = false;