how to deactivate an object unity code example
Example 1: how to deactivate an object unity
Object.SetActive(true / false);
Example 2: deactivate a gameobject unity
public void SetActive(bool value);
Object.SetActive(true / false);
public void SetActive(bool value);