Question by
RobAtApex · Jun 06, 2018 at 12:58 PM ·
mousepositioneventsystemonguimouseclickevents
Convert Event.current.mousePosition to Input.mousePosition
What's the right way to convert Event.current.mousePosition to the same space as Input.mousePosition?
The Y coords are upside down with respect to each other. So you would think that this would work:
Screen.height - 1- Event.current.mousePosition.y
But in the Unity Editor the result is consistently off by 3. Why? Presumably this will be different on different platforms.
In our app, Screen.height is same as Camera.main.pixelHeight, so using that instead won't make a difference.
Comment