可以进行屏幕坐标到UGUI坐标的转换。
RectTransformUtility
.ScreenPointToLocalPointInRectangle()
UGUI事件:(虽然可以为控件添加点击button组件,但是只有单击事件,下面有更多的操作监听事件)
PointerEnter
PointerExit
PointerDown
PointerUp
PointerClick
Drag
Drop
Scroll
UpdateSelected
Select
Deselect
Move
using UnityEngine.EventSystems