Mouse Cursor Disabled

Announcements, support questions, and discussion for Save System for Opsive Character Controllers.
kehaw
Posts: 10
Joined: Mon May 20, 2024 5:13 am

Re: Mouse Cursor Disabled

Post 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?
User avatar
Tony Li
Posts: 23064
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mouse Cursor Disabled

Post 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.
Post Reply