Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity hide mouse first person

void Start()
    {//Makes it invisable
        Cursor.visible = false;
  //Locks the mouse in place
        Cursor.lockState = CursorLockMode.Locked;
  // In unity press esc to unlock the mouse and unhide it
  
    }
 
PREVIOUS NEXT
Tagged: #unity #hide #mouse #person
ADD COMMENT
Topic
Name
2+8 =