Hi, I'm overlaying a GUI texture to the position of the mouse. However, the actual click point, the end of the cursor, is off by a little to the left and up of my actual texture. How do I fix this?
Here's my script:
function Start() {
Screen.showCursor = false;
}
function OnGUI() {
var mousePos : Vector3 = Input.mousePosition;
var pos : Rect = Rect(mousePos.x,Screen.height - mousePos.y,cursorImage.width,cursorImage.height);
GUI.Label(pos,cursorImage);
}