Page 2 of 2

Re: Mouse Cursor Disabled

Posted: Tue Apr 15, 2025 1:09 pm
by kehaw
Hello Tony,

After debugging, I located the problem in line 355 of UCCSaver.cs, like this:

Code: Select all

// Hide cursor: (In editor, UnityInput makes cursor visible when paused during scene transition.)
var unityInput = playerInput as UnityInput;
if (unityInput != null) unityInput.DisableCursor = true;
I don't quite understand why the cursor should be disabled here (unityInput.DisableCursor = true;). I manually changed it to false and there is no problem now. What problem did this code originally want to solve?

Re: Mouse Cursor Disabled

Posted: Tue Apr 15, 2025 4:00 pm
by Tony Li
Hi,

It's fine to set it to false. Most people want the cursor to be invisible, so we use that code to disable it.