Enter key in Continue button works only if I click it

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
wborgo
Posts: 10
Joined: Thu Oct 19, 2023 4:21 pm

Enter key in Continue button works only if I click it

Post by wborgo »

After choosing an option from the response menu, the 'Enter' key becomes unresponsive to Continue or Fast Forward. Then I have to click 'Continue' to restore its functionality.

The arrow doesn't work anymore in Response menu after I use the mouse too.

PS: I'm using almost all original default UI Dialog prefab, only changing position and background image. I'm also using Text Animator, and my Continue button is using "Text Animator Button Fast Forward".
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Enter key in Continue button works only if I click it

Post by Tony Li »

Hi,

On the Dialogue Manager GameObject's Input Device Manager component, tick Always Auto Focus.

If that doesn't fix the issue, please let me know:
  • Are there any errors or warnings in the Console?
  • What Unity version and Dialogue System version are you using?
  • Keep an Inspector view on the EventSystem GameObject while playing. The bottom of the Inspector will show what UI element Unity UI has currently selected. When the issue happens, what UI element is selected?
wborgo
Posts: 10
Joined: Thu Oct 19, 2023 4:21 pm

Re: Enter key in Continue button works only if I click it

Post by wborgo »

Thanks! autofocus solved it.

Is there any way to add some "delay" before the user can press Enter again when a response menu appears?
I mean, the player can advance all the conversations and then the menu appears, the player presses Enter and passes without seeing the options.
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Enter key in Continue button works only if I click it

Post by Tony Li »

Hi,

Inspect the response menu panel's Standard UI Menu Panel component and set Block Input Duration. For example, if you set Block Input Duration to 0.5 seconds, the player won't be able to click response buttons for 0.5 seconds.
wborgo
Posts: 10
Joined: Thu Oct 19, 2023 4:21 pm

Re: Enter key in Continue button works only if I click it

Post by wborgo »

Thank you again.

I read all the documentation, but anxiety prevented me from absorbing it all.
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Enter key in Continue button works only if I click it

Post by Tony Li »

Glad to help! If any other questions come up, please feel free to ask.
Post Reply