how to set cursor to cursor lock mode code example Example: cursor lock mode Cursor.lockState = CursorLockMode.Locked;