Mouse Cursor Disappearing

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Rafael
Posts: 3
Joined: Sat Aug 10, 2024 6:45 pm

Mouse Cursor Disappearing

Post by Rafael »

Hello there. I'm just trying to get kicked-off with the first tutorial video and am running into a snag where my mouse cursor keeps disappearing. I tried changing the input device from "joystick" to "mouse and disabling "Control Cursor State", but it didn't fix the issue.

-When I set the trigger to "on start" I can see the mouse until I click "goodbye".
-When I set the trigger to "on use", the mouse is visible until I click anywhere (clicking the box doesn't result in the expected dialogue.)
-When I hit escape and bring up the pause menu, the mouse is visible again, but as soon as I click "close menu" the mouse disappears.

Perhaps worth noting that I get "Missing EventSystem" error each time I play the scene.

Any ideas?

p.s. Dialogue System is the only asset I have installed in this project. (Unity version 2022.3.4f1)
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mouse Cursor Disappearing

Post by Tony Li »

Hi,

If you're using the Demo scene's DemoMenu script, it has a "Lock Cursor During Play" checkbox that hides the cursor.
Rafael
Posts: 3
Joined: Sat Aug 10, 2024 6:45 pm

Re: Mouse Cursor Disappearing

Post by Rafael »

And I thought I'd looked everywhere! Thank you so much!

p.s. This asset is mind-bogglingly awesome.
Rafael
Posts: 3
Joined: Sat Aug 10, 2024 6:45 pm

Re: Mouse Cursor Disappearing

Post by Rafael »

Oh--do I need to do something about the event system warning?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mouse Cursor Disappearing

Post by Tony Li »

Ideally you'd add an EventSystem GameObject to your scene. To do this, select menu item GameObject > UI > EventSystem.

However, the warning just tells you that, since your scene is missing an EventSystem, the Dialogue System has your back and is creating a default one to use at runtime.
Post Reply