Page 1 of 1

Change selecting respond menu button by other key

Posted: Thu Jun 24, 2021 12:26 am
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?

Re: Change selecting respond menu button by other key

Posted: Thu Jun 24, 2021 8:38 am
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 312 times

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

changeSubmitInput.png
changeSubmitInput.png (73.3 KiB) Viewed 312 times