Reading mouse position
Let's see how to read the mouse current position in our Unity Game.
An important thing to note is that, unlike where using Flash for example, in Unity the origin of the screen is at the bottom left
To read the position of your mouse, you just need to read the Input.mousePosition static property of the Input class, which returns a Vector3.
You can retrieve each component reading its x, y and z properties, for example
Hiding mouse pointer
In some cases, for example when using a First Person Controller, you may want to hide the mouse pointer.
It is also necessary when you want to implement your custom mouse pointer.
To do it, set showCursor as false:
Screen.showCursor = false;