Response Menu is not focused

Announcements, support questions, and discussion for the Dialogue System.
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Response Menu is not focused

Post by Saper »

Hi Tony

I have problem with focus in response menu. When response menu is visible theres no focus on any button, i can't do anything with gamepad, keyboard or mouse. I have focus on buttons only when I disconnect gamepad and reconnect it.

What should i check to debbug this problem?
User avatar
Tony Li
Posts: 23254
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response Menu is not focused

Post by Tony Li »

Hi,

If you can't focus with the mouse, make sure the dialogue UI's Canvas has a Graphic Raycaster.

To test focus with gamepad or keyboard, on the Dialogue Manager GameObject tick the Input Device Manager component's Always Auto Focus checkbox. Then inspect the response menu's StandardUIMenuPanel component and set Refresh Selectables Frequency to 0.5 and Focus Check Frequency to 0.2. (Anything other than 0 will do.)

In the Unity editor's play mode, you can keep an inspector view on the EventSystem GameObject. (Make sure your scene has an EventSystem and that the input module component looks correct.) At runtime, the bottom of the inspector will show what UI button is currently selected (focused).
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

Hi Tony

Thanks for help the "Always Auto focus" box was unchecked after checking that box it works as it should :) Thanks again
User avatar
Tony Li
Posts: 23254
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response Menu is not focused

Post by Tony Li »

Glad to help!
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

Hi Tony

I have one more question about response Menu. Right now first response menu work properly but when i go to second instance of response menu there is a problem:

When i try to click action button to go to next node ( next node is response node) response menu is shown for half second or less and it go to next node after "response button node1".
User avatar
Tony Li
Posts: 23254
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response Menu is not focused

Post by Tony Li »

Hi,

As a test, does this happen if you assign the Basic Standard Dialogue UI to your Dialogue Manager? This will help determine if the issue is with the specific dialogue UI or something else.

Does the second response menu contain only one response? If so, maybe it's showing it as a subtitle, like in this post.
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

Hi Tony
Does the second response menu contain only one response? If so, maybe it's showing it as a subtitle, like in this post.
For the test I setup multiple choices for every response.
Response menu flashes/shown for a second or less.
As a test, does this happen if you assign the Basic Standard Dialogue UI to your Dialogue Manager? This will help determine if the issue is with the specific dialogue UI or something else.
After setting up Basic Standard Dialogue UI Response menu is showing but:
- I can't click action button to finish typewriter effect I must wait for typewriter effect to finish on it's own
- This is happening only on nodes before response nodes (green node on the screenshot)
- On other nodes action button finishes typewriter effect without any issue (one click finish typewriter effect, second click go to next node)
Attachments
Dialogue_Response_Menu.png
Dialogue_Response_Menu.png (66.12 KiB) Viewed 7219 times
User avatar
Tony Li
Posts: 23254
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response Menu is not focused

Post by Tony Li »

Saper wrote: Wed Jan 29, 2025 4:18 amResponse menu flashes/shown for a second or less.
Is the panel's animator hiding the menu?
Saper wrote: Wed Jan 29, 2025 4:18 amAfter setting up Basic Standard Dialogue UI Response menu is showing but:
- I can't click action button to finish typewriter effect I must wait for typewriter effect to finish on it's own
- This is happening only on nodes before response nodes (green node on the screenshot)
- On other nodes action button finishes typewriter effect without any issue (one click finish typewriter effect, second click go to next node)
How are you tying the action button to advancing the typewriter?
Saper
Posts: 85
Joined: Tue Jan 12, 2021 11:25 am

Re: Response Menu is not focused

Post by Saper »

How are you tying the action button to advancing the typewriter?
- I use standard settings for "Basic Standard Dialogue UI"
- I start conversation
- One click of "Spacebar" or "South button" finishes type wrirter effect
- Second click of "Spacebar" or "South button" go to next node
- but in node before response nodes that don't work
Is the panel's animator hiding the menu?
Yes it looks like Show animation is interrupted by Hide animation
User avatar
Tony Li
Posts: 23254
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response Menu is not focused

Post by Tony Li »

Saper wrote: Fri Jan 31, 2025 5:19 amYes it looks like Show animation is interrupted by Hide animation
This is almost certainly the issue. What DS version are you using? Is the response menu using one of the animator controllers that ship with the Dialogue System, or a custom one?
Post Reply