gameobject.setactive in unity code example
Example 1: unity c# set gameobject active
gameObject.SetActive(true)
Example 2: how to deactivate an object unity
Object.SetActive(true / false);
gameObject.SetActive(true)
Object.SetActive(true / false);