Unity C# desactivate game object code example
Example 1: deactivate a gameobject unity
public void SetActive(bool value);
Example 2: how to acivate a game object unity
void Start ()
{
gameObject.SetActive(false); // Disables the game object
}