• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
10
Question by Coreyf716 · Sep 30, 2012 at 09:22 PM · javascriptinputgetaxis

Error: Input Axis Not Set Up

How to I resolve this error?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
25
Best Answer

Answer by aldonaletto · Sep 30, 2012 at 10:18 PM

This error means that you're using an axis not set up in the Input manager. Usually this happens when you try to read a non-existent axis, or an axis with a misspelled name, like `Input.GetAxis("horizontal")` (it should be "Horizontal") or `Input.GetAxis("ScrollWheel")` (should be "Mouse ScrollWheel").
Find the line where the error occurs and check the axis name. If it seems ok, verify the axis settings in the Input Manager (menu Edit/Project Settings/Input)

Comment
Add comment · Show 9 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Coreyf716 · Sep 30, 2012 at 10:22 PM 0
Share

You're right. I suck at spelling :D

It's working now. Thanks

avatar image 면목 껨팔이 · Jun 27, 2013 at 12:58 PM 0
Share

Oh... God..... I just forgot checking spells! Thanks

avatar image ergonomic · Nov 08, 2013 at 03:01 AM 0
Share

thanks ...i also did the same mistake

avatar image ReclaimerDC · Feb 02, 2014 at 05:21 AM 0
Share

Thanks! I used a lower case h and was so confused!

avatar image 123osama · Apr 27, 2014 at 10:01 AM 0
Share

THAN$$anonymous$$ YOU SOOOOOOOOOO $$anonymous$$UCH !!!!!!!!!!

Show more comments
avatar image
2

Answer by hectoranime · Jul 08, 2015 at 09:29 AM

please help him put out of space but still follows the error

alt text ![alt text][2]


scripts.jpg (46.5 kB)
unity.jpg (234.7 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by $$anonymous$$ · Sep 30, 2012 at 10:20 PM

The axes which are defined are "horizontal" and "vertical"...

Check your spelling, if you tried to check a key, use Input.GetKeyDown or define a new axis in Edit >> Project Settings >> Input :]

Greetings, TheCSharpFreak

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Coreyf716 · Sep 30, 2012 at 10:22 PM 0
Share

I got it.

Thanks :)

avatar image
0

Answer by Island-Studio · Sep 07, 2020 at 10:19 AM

Thank yooooooouuu so much

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Animations, Please Help 1 Answer

Pause Menu won't open... 1 Answer

Control left + right = up 0 Answers

Making a character rotate diagonal? 1 Answer

Problem with MathF in C# and Javascript 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges