A button always gets selected in response menu

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ogzozdemir
Posts: 2
Joined: Thu Nov 30, 2023 8:18 am

A button always gets selected in response menu

Post by ogzozdemir »

Hello, I've been using and customizing the VN template to suit my preferences, but I've encountered an issue. Whenever I reach the response/choice menu, a button is always selected by default. I want the buttons to be unselected in the beginning. I couldn't find a solution so can you guys please help me?
Attachments
selection.png
selection.png (7.52 KiB) Viewed 371 times
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: A button always gets selected in response menu

Post by Tony Li »

Hi,

Inspect your Dialogue Manager GameObject's Input Device Manager component. Untick Always Auto Focus.
ogzozdemir
Posts: 2
Joined: Thu Nov 30, 2023 8:18 am

Re: A button always gets selected in response menu

Post by ogzozdemir »

Tony Li wrote: Thu Nov 30, 2023 8:55 am Hi,

Inspect your Dialogue Manager GameObject's Input Device Manager component. Untick Always Auto Focus.
I need to disable the keyboard controls/inputs to do this. However, I still want to control it with both the keyboard and mouse.
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: A button always gets selected in response menu

Post by Tony Li »

Unity UI won't let you navigate buttons using a keyboard or joystick unless a button is already selected.
  • Untick Always Auto Focus
  • Configure the Joystick Axes To Check and Key Codes To Check.
  • Change Key Input Switched Mode To -> Keyboard
When those Axes/Key Codes are pressed the Input Device Manager will switch the Input Device dropdown to Joystick or Keyboard and will select one of the buttons so you can navigate them.
Post Reply