I want to continue the conversation using something other than EventSystem submit.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
gaku2_sigehiro
Posts: 36
Joined: Sun Jul 14, 2024 2:35 am

I want to continue the conversation using something other than EventSystem submit.

Post by gaku2_sigehiro »

It looks like the Continue Button is used to advance the conversation in the dialog system using the EventSystem's submit, but can it be modified so that the conversation can be advanced by directly reading the InputSystem keys?
In that case, which script should I modify?
What kind of script should I insert?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: I want to continue the conversation using something other than EventSystem submit.

Post by Tony Li »

Hi,

Add a UI Button Key Trigger component to your continue button, and set Key to a key code and/or set the Button Name field to an Input System action name. (You must register the action name with the Dialogue System using the instructions on page 5 of Input_Device_Manager_Manual.pdf provided in your project.)
gaku2_sigehiro
Posts: 36
Joined: Sun Jul 14, 2024 2:35 am

Re: I want to continue the conversation using something other than EventSystem submit.

Post by gaku2_sigehiro »

Hello.
I tried the method described and got the expected behavior.
thank you.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: I want to continue the conversation using something other than EventSystem submit.

Post by Tony Li »

Happy to help!
Post Reply