unity how to hide mouse cursor code example Example: disable mouse unity Cursor.lockState = CursorLockMode.locked; Cursor.visible = false;