input settings horizontal is not setup

iam new to unity.iam learning the space shooter game tutorial.i wrote a script in c# as the tutor taught, while running the game the player didnt even move a bit. an error message shows stating
UnityException: Input Axis horizontal is not setup.

how to over come this. iam using unity 4.

3 Answers

3

See this :

You can easily set horizontal axis after exploring above link.
Enjoy :slight_smile:

thank u for ur help.i got the answer.

Take a look at Edit>Project Settings>Input
http://docs.unity3d.com/Documentation/Components/class-InputManager.html

thank u for ur help.i got it right.

Make sure you have the correct cases. What I mean is you have to be careful with your caps and non caps. In mine the code said horizontal but in the Input manager it was Horizontal

thanks for the help.