It seems that in 5.6+ the Rect coordinate origin has changedwhere (0,0) is now bottom left hand and not top left hand?
This doesn’t appear to be updated in documentation but when I specify pixelRect = 10,10,100,100 - it shows up bottom left hand instead of top left hand - contrary to
I believe it depends on which space you are using.
GUI Space (used in Editor Scripting) origin from the top-left (0,0) to bottom right (width,height)
Screen space (used by the camera) origin from the bottom-left (0,0) to top-right (screenwidth,screenheight).
View space (also used by camera) origin from the bottom left (0,0) to top-right (1,1)
there are functions, like UnityEngine.GUIUtility.ScreenToGUIPoint() that can help you convert between each space
to go further. the Vector in Event.current.mousposition would be in GUI space (typically origined to the Editor panel being drawn, not the top-left corner of the unity window).
while something like Input.mousePosition is in screen space