Error "Input Axis Vertical is not set up"
I'm taking a tutorial for an Enemy Kills Player Tutorial. I've looked through my script multiple times and this is the only error that shows up. It lets me play the game, but the controller itself won't work. Why is this?
Answer by HenryStrattonFW · Jan 21, 2017 at 05:16 PM
The error suggests that "Vertical" is not an axis set up in your input manager settings. Double check your input manager settings for this axis, and make sure your string does not contain leading or trailing spaces as this will cause it to fail to find the input axis as well.
What is a string, and how would I figure out if it contains those things?
A string is a value type for a variable. In order to get this error message I imagine your code is somewhere calling something along the lines of.
float verticalInput = Input.GetAxis("Vertical");
In this example, the string is "Vertical". To check if it has spaces in, simply find that line in your code and check to see if there is a space in there.
Your answer
Follow this Question
Related Questions
Setup an animation script, but now mouselook is not working? 0 Answers
Character Controller script won't work? 1 Answer
Changing characters 0 Answers
Error CS0103 0 Answers
Player pushes object but gets pushed into the Wall/Boundary 0 Answers