public void OnPointerClick(PointerEventData eventData) { //Hidding menu when background was clicked MainCanvas.HideMenu(); }