unity hide UI code example
Example 1: how to hide a panel ui unity
Panel.gameObject.SetActive (false);
Example 2: how to hide ui elements unity
GameObject.Find("the object name").SetActive(false);
Panel.gameObject.SetActive (false);
GameObject.Find("the object name").SetActive(false);