** Unity屏幕坐标(Input.mousePosition)转换UI坐标 1:屏幕坐标的起点位置 左下角为(0,0)点,右上角为(Screen.width,Screen.height) 2:UI坐标的起点位置 屏幕中心点 方法一: Vector2 uisize = canvas.GetComponent<RectTransform>().sizeDelta;//得到画布的尺寸 Vector2 screenpos = Input.mousePosi