How To Lock And Hide A Cursor Unity

Source URL: N/A

Language: csharp

Created on: 2020-07-18 17:22:22

//to lock in the centre of window
Cursor.lockState = CursorLockMode.Locked;
//to hide the curser
Cursor.visible = false;


Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;
How To Lock And Hide A Cursor Unity
content_copy