【Unity】RectTransformUtility.ScreenPointToWorldPointInRectangle解析与用法
官方介绍:public static bool ScreenPointToWorldPointInRectangle(RectTransform rect, Vector2 screenPoint, Camera cam, out Vector3 worldPoint);参数:RectTransformrect:平面上的世界空间中的位置Vector2screenPoint:屏幕空间上的点Cameracam:与屏幕点相关的相机out Vector3 worldPoint:信息位置...
原创
2021-02-01 16:23:19 ·
3320 阅读 ·
0 评论