How do you change the the buttons for a Input.GetAxis()? From what I could find there aren’t any commands in the API. I’m guessing it might be something like Input.GetAxis("Vertical’).button.alt.negative = “s”; but that doesn’t exist as a command. Am I looking in the wrong spot?
Can’t be done at runtime. One of Unity’s few major flaws.
In the editor you can go to project settings → input settings
Ok so if I can’t use input controls from the input settings how do I implement customizable controls? I know you can create keycode variables but can you implement them in a custom axis? I need to replace Input.GetAxis(“Vertical”) and Input.GetAxis(“Horizontal”) of the code following below.
Vector3 keyPositions = new Vector3(transform.position.x + Input.GetAxis("Horizontal"),transform.position.y + Input.GetAxis("Vertical"),transform.position.z);