on set active and deactive in unity code example Example: unity c# set gameobject active gameObject.SetActive(true)