Change selecting respond menu button by other key

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Tony Chou
Posts: 7
Joined: Wed Jun 23, 2021 11:39 pm

Change selecting respond menu button by other key

Post by Tony Chou »

I am working on a JRPG project.
I would like to change Keycode for select respond menu button from KeyCode.Return to KeyCode.Z.
How can I accomplish this change?
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change selecting respond menu button by other key

Post by Tony Li »

Hello,

The dialogue UI uses Unity UI.

Unity UI uses an EventSystem.

The EventSystem's Standalone Input Module has a Submit input:

eventSystem.png
eventSystem.png (24.45 KiB) Viewed 309 times

The Submit input is mapped to 'return'. Change it to 'z':

changeSubmitInput.png
changeSubmitInput.png (73.3 KiB) Viewed 309 times
Post Reply