#RectTransform

Unity 屏幕坐标到UGUI RectTransform本地坐标的转换

publicstaticboolScreenPointToLocalPointInRectangle(RectTransformrect,Vector2screenPoint,Cameracam,outVector2localPoint);rect:对应的RectTransform的引用screenPoint:位置,基...