- Home /
How can I make GUI button send an input message when I press it?
How can I make GUI button send an input message when I press it?
Let say that I linked w/s as Vertical and a/d as Horizontal inputs. Then, I have 4 buttons.
Specifically, I needed each button to send the specific key, so that I can trigger Vertical/Horizontal input.
either Javascript or C# is fine.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613071803im_/https://answers.unity.com/themes/thub/images/avi.jpg)