unity enable cursor code example Example: Unity disable cursor CursCursor.lockState = CursorLockMode.Locked; Cursor.visible = false;