- Home /
ArgumentException: Input Axis Axis.HORIZONTAL is not setup?
ArgumentException: Input Axis Axis.HORIZONTAL is not setup,
I have already looked for answers and all of them just say to check your spelling and am copy/pasting the words vertical and horizontal into my code from the input manager, which looks all ok to me, but I'm very new to unity. do I need to change some setting or use the new input thing, please help!
Answer by ergomantra · May 26, 2020 at 03:30 PM
float x =input.GetAxis("Horizontal");
transform.rotate(x,0,0);
thank you, but I'm trying to move, not rotate and I think I integrated this right but it made no difference. thank you for trying tho :)
Transform myTransform; Vector3 $$anonymous$$oveDir; float speed = 25f; void Start()
myTransform = GetComponent<Transform>();
void Update()
float HorizontalInput = Input.GetAxis("Horizontal")
$$anonymous$$oveDir = new Vector3(HorizontalInput, 0, 0);
this.transform.Translate( $$anonymous$$oveDir*speed)
Answer by ahmedaniss · Apr 24, 2021 at 03:06 PM
problem fixed here : https://youtu.be/nXJB7TdnQXg
i can't solve it because i am using visual scripting why?
Your answer
Follow this Question
Related Questions
Making the camera follow the mouse but stay near the player? 2 Answers
Vector3 Error - "The type or namespace 'Vector3' could not be found." 0 Answers
Add Force At Player 0 Answers
My character moves when i dont want to 0 Answers
My character won't move 1 Answer