set game object active unity code example Example: unity c# set gameobject active gameObject.SetActive(true)