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下的某个物体跟随鼠标