disable mouse cursor in unity editor code example
Example 1: how to unlock cursor in unity
Cursor.lockState = CursorLockMode.None; // to unlock cursor
Cursor.visible = true; // to make cursor visible
Example 2: Unity disable cursor
CursCursor.lockState = CursorLockMode.Locked;
Cursor.visible = false;