0
\$\begingroup\$

I have a working Menu system in my game. I am able to move across the menu using Up/Down arrow keys and select those options using the enter key. The problem is how do i get that arrow key functionality to a UI joystick and enter key functionality to a UI button that I have.

Any help would be greatly appreciated. Thank you in advance. Let me know if you need any more details, happy to provide videos of the problem, code, or the entire project if need be.

\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

I solved the problem by hard rigging it.

I used the joystick input -> up/down/left/right input sets the button (GameObject) in that direction as the current selected in the EventSystem.

For button click and invoking that button's functionality I used ExecuteEvents.Execute().

\$\endgroup\$
1
  • \$\begingroup\$ If this fixed your issue, you might want to mark the answer as accepted :) \$\endgroup\$
    – Vaillancourt
    Mar 6, 2020 at 3:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .