how to lock the mouse in unity C# code example Example: unity mouse lock Cursor.lockState = CursorLockMode.Locked;