Page 1 of 1

Response button color

Posted: Mon Jul 26, 2021 10:22 am
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.

Re: Response button color

Posted: Mon Jul 26, 2021 10:48 am
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?

Re: Response button color

Posted: Mon Jul 26, 2021 11:01 am
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.

Re: Response button color

Posted: Mon Jul 26, 2021 1:11 pm
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.

Re: Response button color

Posted: Mon Jul 26, 2021 2:24 pm
by SealDev
Solved. Thanks!

Re: Response button color

Posted: Mon Jul 26, 2021 2:45 pm
by Tony Li
Glad to help! :-)