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