Page 1 of 1

Enter key in Continue button works only if I click it

Posted: Tue Oct 24, 2023 10:09 pm
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".

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

Posted: Wed Oct 25, 2023 8:08 am
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?

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

Posted: Thu Oct 26, 2023 8:52 pm
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.

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

Posted: Thu Oct 26, 2023 9:05 pm
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.

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

Posted: Fri Oct 27, 2023 7:59 am
by wborgo
Thank you again.

I read all the documentation, but anxiety prevented me from absorbing it all.

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

Posted: Fri Oct 27, 2023 8:14 am
by Tony Li
Glad to help! If any other questions come up, please feel free to ask.