how to hide ui elements unity

C++
GameObject.Find("the object name").SetActive(false);
Source

Also in C++: