Can't Use Continue Button After Up or Left Input or Clicking Game Area

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ssp2020
Posts: 2
Joined: Fri Jul 10, 2020 6:57 pm

Can't Use Continue Button After Up or Left Input or Clicking Game Area

Post by ssp2020 »

[Unity 2019.4.3f1] Dialogue System v2.2.7
JRPG Template Standard Dialogue UI (Prefab)

I'm new to this asset and unity, so I might be missing some basic step.

Pressing A or W, or clicking anywhere inside the game window (only during NPC's dialogue) de-focuses the Continue button and makes it impossible(?) to select except by clicking directly with the mouse. Escape will also skip the dialogue when this happens. If escape is used to skip NPC dialogue, the continue button will not be activated with space anywhere else in the dialogue, but after it's clicked with the mouse, future continue buttons will be auto-focused and activated with space.

Testing with an Xbox 360 controller, this renders the controller unusable for continuing the game and forces me to use escape on the keyboard or left click the button with a mouse.

Continue Button = Always.

I've tried this in an empty project with only Dialogue System installed and it's the same; However switching to WRPG Template Standard Dialogue UI has different results.

Using WRPG:
  • while holding up or left on xbox360 controller or keyboard, Continue doesn't work. Releasing the input allows the continue button to work using spacebar or (A) button.
  • clicking anywhere in the game area does not prevent spacebar or (A) button from activating continue.
Using JRPG:
  • pressing up or left on xbox360 controller or keyboard accidentally during NPC dialogue renders the continue button unselectable permanently without directly left-clicking the button with mouse.
  • clicking anywhere in the game area accidentally during NPC dialogue renders the continue button unselectable for keyboard or controller, without directly left-clicking the button.
How do I use JRPG Template with a controller or keyboard for input exclusively without accidental directional inputs requiring the use of mouse or Esc key? I've tried various combinations of Always Auto Focus, Detect Mouse Control and Control Cursor State, but it doesn't seem to solve my problem.

I have an empty gameobject for player and an NPC gameobject with Dialogue System Trigger set to trigger a conversation On Start.

Extra info: Mono, .NET Standard 2.0, Input Manager (Old), USE_PHYSICS2D;TMP_PRESENT, Built-in Unity Renderer
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can't Use Continue Button After Up or Left Input or Clicking Game Area

Post by Tony Li »

Hi,

There are two things you can do:

1. Inspect the continue button(s) in your dialogue UI and set Navigation to Explicit or None. This will prevent the player from being able to navigate away from the continue button using a controller or arrow keys.

2. Make sure the subtitle panel's Focus Check Frequency is nonzero (e.g., 0.2 or something). Tick the Dialogue Manager GameObject's Input Device Manager > Always Auto Focus checkbox. This will keep the continue button focused.
ssp2020
Posts: 2
Joined: Fri Jul 10, 2020 6:57 pm

Re: Can't Use Continue Button After Up or Left Input or Clicking Game Area

Post by ssp2020 »

All problems are solved, thank you.

Option 1 solved the issue of directional inputs losing focus on the continue button.

For Option 2, both of these settings were already set as recommended when I checked and the issue of clicking in the game area losing focus persisted; However, the First Selected field was empty by default. After setting this to the Continue Button, the loss of focus related to clicking in the game area now seems to be solved.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can't Use Continue Button After Up or Left Input or Clicking Game Area

Post by Tony Li »

Happy to help!
Post Reply