Response button color

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SealDev
Posts: 85
Joined: Thu Jun 24, 2021 5:45 am

Response button color

Post by SealDev »

I have 2 responses. As i move mouse over 1 button, highlighted color works. But it doesn't work for the other button (remains white Normal Color)

If I hold click the working button (Pressed Color) then move mouse away and release click so that I don't choose that option, the response for which the Highlight Color works is reversed.

Highlight Color doesn't work for both response buttons.
Attachments
a.png
a.png (14.27 KiB) Viewed 641 times
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response button color

Post by Tony Li »

Hi,

The Dialogue Manager GameObject has an Input Device Manager component.
  • If Always Auto Focus is ticked, try unticking it.
  • If Detect Mouse Control is UNticked, try ticking it.
Does that resolve the issue?

Are you using Unity's built-in input, or a different input system such as the new Input System package or Rewired or InControl?
SealDev
Posts: 85
Joined: Thu Jun 24, 2021 5:45 am

Re: Response button color

Post by SealDev »

Unity built in input.

Ticking "Detect Mouse Control" works. However I have a 3rd person character so I don't want my mouse to show up as I rotate with the mouse.

I have script that makes cursor show up everytime I reach a response. After choosing a response I hide it again. That's the only time I want my cursor to show up.

Auto Focus is not ticked.
Attachments
c.png
c.png (21.7 KiB) Viewed 631 times
b.png
b.png (10.22 KiB) Viewed 632 times
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response button color

Post by Tony Li »

Hi,

Try ticking the Input Device Manager's Detect Mouse Control, but UNtick Control Cursor State since you're controlling the cursor state yourself.
SealDev
Posts: 85
Joined: Thu Jun 24, 2021 5:45 am

Re: Response button color

Post by SealDev »

Solved. Thanks!
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response button color

Post by Tony Li »

Glad to help! :-)
Post Reply