1//to lock in the centre of window
2Cursor.lockState = CursorLockMode.Locked;
3//to hide the curser
4Cursor.visible = false;
5
6
7Cursor.lockState = CursorLockMode.None;
8Cursor.visible = true;
1Cursor.lockState = CursorLockMode.None; // to unlock cursor
2Cursor.visible = true; // to make cursor visible
1Cursor.lockState = CursorLockMode.None; // this is to lock the cursor
2Cursor.visible = true; //this is to make cursor visible
1Cursor.lockState = CursorLockMode.None; // this is to unlock the cursor
2Cursor.visible = true;