Mouse/ UI elements are unusable if I transition into scene from Main Menu?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Anxietyberry
Posts: 2
Joined: Fri Jun 30, 2023 7:13 am

Mouse/ UI elements are unusable if I transition into scene from Main Menu?

Post by Anxietyberry »

Hey y'all, thanks in advance for helping a first time dev. I'm using version 2.2.38

Here's a short screen recording of the error.
https://drive.google.com/file/d/1fSFw0C ... sp=sharing

I have two scenes- MainMenu (0) and MainScene (1)

If I load directly into MainScene, all of my UI elements are selectable and clickable. I can click continue and everything's great.

If I load directly into MainMenu and click "New Game" to load MainScene (1), I get a bunch of weird errors with my cursor. The cursor will disappear and stay in the center of the screen. It won't reset unless I move out of the window entirely. The UI Canvas button on the lower left of the screen sometimes works.

If I am able to click an element, nothing happens and it prevents the creation of further dialogue options. What's happening, and how can I fix this? Thanks!
User avatar
Tony Li
Posts: 22124
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mouse/ UI elements are unusable if I transition into scene from Main Menu?

Post by Tony Li »

Hi,

It looks like Game Creator is taking control of the cursor. If you want to allow Game Creator to maintain full control of the cursor, and tell the Dialogue System to not touch the cursor, inspect the Dialogue Manager GameObject's Input Device Manager component. UNtick Control Cursor State.

Also, make sure all of your scenes have EventSystem GameObjects. Inspect the EventSystem GameObject in each scene to make sure it doesn't report any errors. (If you're using the Input System package instead of Unity's built-in input manager, you may need to click a button to update the EventSystem for use with the Input System package.)
Anxietyberry
Posts: 2
Joined: Fri Jun 30, 2023 7:13 am

Re: Mouse/ UI elements are unusable if I transition into scene from Main Menu?

Post by Anxietyberry »

I didn't even think of Game Creator. I'll definitely take a look at that. Will make these changes and report back. Thank you!!!
Post Reply