Page 1 of 1

Avoid 'selected' state on response button?

Posted: Thu Oct 24, 2024 1:28 pm
by DarkProphet
As you can see below, the 1st response button 'Ignore Abel' Is white, because it is In a selected state.
I don't want this. It doesn't matter how many times I mouse over it or the other buttons (should turn blue), the top one stays in the selected state. It only changes color on mouse press (to green).
I'm currently using 'Color tint' to change the buttons states, but I've tried using animation states as well with no sucess.
I've tried setting the Navigation of the buttons from Automatic to 'none', that removed all mouse states altogether.
Any way to have Unity/DS bypass this annoying selected state?
Screenshot 2024-10-24 at 19.22.28.png
Screenshot 2024-10-24 at 19.22.28.png (135.96 KiB) Viewed 69 times

Re: Avoid 'selected' state on response button?

Posted: Thu Oct 24, 2024 1:39 pm
by Tony Li
Hi,

Try this:

1. UNtick the Dialogue Manager GameObject's Input Device Manager component > Always Auto Focus.

2. Add DeselectPreviousOnPointerEnter components to your response button(s) if they don't already have them.

Re: Avoid 'selected' state on response button?

Posted: Thu Oct 24, 2024 2:24 pm
by DarkProphet
1. Seemed to have done the trick!
Thanks!

Re: Avoid 'selected' state on response button?

Posted: Thu Oct 24, 2024 3:00 pm
by Tony Li
Glad to help! I recommend step 2 also if you haven't already done it. Otherwise if one button is selected and you hover the mouse over another button, both buttons will appear in the selected/highlighted state.