- Home /
How to make new Axis?
Hello,
I was wandering if it is possible to make a new axis via script.
Like having
var moveRight : KeyCode;
var moveLeft : KeyCode;
And then combining them to a new axis like:
Input.GetAxis("MyAxis");
Thanks! :)
Answer by FPSworrior · Nov 07, 2013 at 06:14 PM
You can put "MyAxis", but in order for it to work you have to go into edit at the top of the screen, then go to input and then it will say axis. You will have to put a different number of axis for example if you have 22 axis then you have to put 23. Then you can change the name of the axis to your own name which would be "MyAxis" then assign a button for it. Once thats done then you can make your axis work for whatever you want.
Your answer
Follow this Question
Related Questions
New Input System How to get Left Stick Axis 1 Answer
Steering Wheel / joystick GetAxis trouble 0 Answers
Is there a way to manually change the Input.Axis values? 2 Answers
Problems with joystick / controller axes being 1/-1 "way too often" 1 Answer
[SOLVED] Input.GetAxis("Horizontal") returns wrong value? -1 Answers