How to make UI Button serves as buttons for Input.getAxis()?
What i'm trying to do is make the UI Button (on screen button) Gameobjects that i created act like "Left arrow" and "right arrow" button on the keyboard? I know i can do something like "moveLeft = true;" or "moveRight = true;" when the button is pressed, but that's not what i'm looking for since the Input.GetAxis("Horizontal") won't return 1 right away after the right button is pressed, it returns float around 0,5 and then goes to 1 (Correct me if i'm wrong) so if i want to make it move a gameobject, the movement will start slow and then get faster.
Your answer
Follow this Question
Related Questions
Porting to mobile how to assign input manager axes to GUIButtons. 0 Answers
How to disable Input Events (OnKeyDown etc.) while editing InputField? 2 Answers
GetAxis help? 1 Answer
Have a UI Button do what my Input.GetButtonDown("Use") does? 0 Answers
Pause menu works in editor but not after the game is built. (New Developer) 0 Answers