public static bool ScreenPointToLocalPointInRectangle(RectTransform rect, Vector2 screenPoint, Camera cam, out Vector2 localPoint);
desc:屏幕坐标 --> 局部坐标
return :true
public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint);
public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint, Camera cam);
desc:rect这个区域是否包含屏幕上的某一点
第一个使用不对,就使用第二个
return :true || false
【ugui-1】RectTransformUtility(未完)
原文:https://www.cnblogs.com/junple/p/12690921.html