Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to lock and hide a cursor unity

//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;
 
PREVIOUS NEXT
Tagged: #lock #hide #cursor #unity
ADD COMMENT
Topic
Name
9+4 =