Wrong Buttons Hotspot

Hello,
I’ve already posted this issue on Unity Answers, but nobody helped me, so I’m posting it here too.
I’m experiencing a very weird issue. Since I used this code :

scale.x = Screen.width/1280.0f; // calculate hor scale
scale.y = Screen.height/854.0f; // calculate vert scale
scale.z = 1;
GUI.matrix =  Matrix4x4.TRS(Vector3.zero, Quaternion.identity, scale);

to avoid that the menu would be corrupted with different screen resolutions, I’ve the buttons hotspot out of sync…

Here is a picture of the issue :

As you can see, the mouse is not on the button, but the button looks like to be focused !

Any help is really appreciated !

Try using the GUIUtility.ScaleAroundPivot and GUIUtility.RotateAroundPivot in a sequence.

Perhaps you get a better result.