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