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