Activates/Deactivates the GameObject.
// Deactivates the game object. gameObject.SetActive (false);
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { gameObject.SetActive(false); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: gameObject.SetActive(false)