mouse lockmode unity code example Example: cursor lock mode Cursor.lockState = CursorLockMode.Locked;