how to lock cursor unity 3d code example Example: unity mouse lock Cursor.lockState = CursorLockMode.Locked;