Unity屏幕坐标转UI坐标

var t = Vector2.zero;
RectTransformUtility.ScreenPointToLocalPointInRectangle(mCanvas.transform as RectTransform,Input.mousePosition, mCanvas.worldCamera,out t);

 

posted on 2018-11-21 16:54  yungs  阅读(4718)  评论(0)    收藏  举报