Avoid 'selected' state on response button?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
DarkProphet
Posts: 15
Joined: Thu Dec 16, 2021 2:09 pm

Avoid 'selected' state on response button?

Post 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 61 times
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Avoid 'selected' state on response button?

Post 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.
DarkProphet
Posts: 15
Joined: Thu Dec 16, 2021 2:09 pm

Re: Avoid 'selected' state on response button?

Post by DarkProphet »

1. Seemed to have done the trick!
Thanks!
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Avoid 'selected' state on response button?

Post 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.
Post Reply