Cursor Lock

I need my cursor to be locked and hiden when I start the game, and when I press the Esc key it will show the cursor and unlock it. Does anyone know how to do this?

Have a look at the Screen class provided by the product. Specifically it has two methods:

Screen.showCursor

and

Screen.lockCursor