GameObject.SetActive(false); code example Example: unity c# set gameobject active gameObject.SetActive(true)