how to toggle a panel on and off in unity ui code example Example: how to hide a panel ui unity Panel.gameObject.SetActive (false);