unity set all ui elements to false code example Example: how to hide ui elements unity GameObject.Find("the object name").SetActive(false);