how to hide a panel ui unity

C#
     Panel.gameObject.SetActive (false);
Source

Also in C#: