Vector2 position;
RectTransformUtility.ScreenPointToLocalPointInRectangle(canvas.transform as RectTransform, Input.mousePosition, null, out position);
RectTransformUtility.ScreenPointToLocalPointInRectangle这个方法可以让指定canvas下的某个物体跟随鼠标
Vector2 position;
RectTransformUtility.ScreenPointToLocalPointInRectangle(canvas.transform as RectTransform, Input.mousePosition, null, out position);
RectTransformUtility.ScreenPointToLocalPointInRectangle这个方法可以让指定canvas下的某个物体跟随鼠标
1193
777
3144
1201

被折叠的 条评论
为什么被折叠?