I'm really newbie for all things (including programming), and i need a script that starts with the mouse invisible and locked and when i press esc it's turn visible and unlocks. Probably it's not that difficult, but i'm having problems with that xD. -Sorry for the bad 30% Google Translated english and the newbie question
This will lock it to the center of the screen and hide it. Code (csharp): Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; Then to unlock and make it visible. Code (csharp): Cursor.lockState = CursorLockMode.None; Cursor.visible = true;