• 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 /
This question was closed Jul 07, 2014 at 03:25 PM by meat5000 for the following reason:

The question is answered, right answer was accepted

avatar image
5
Question by Michael 20 · Mar 17, 2011 at 01:25 PM · errorinputmanagersetupcrouch

Input button is not setup??

every time I click play an error appears down that says: Input button crouch is not setup

and then I go to edit->project settings->Input and there is no crouch listed in it.

So how can I add crouch button to input manager?

Thanks

Comment
Add comment · Show 4
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 robertmathew · Mar 17, 2011 at 01:41 PM 0
Share

put the code u have done

avatar image robertmathew · Mar 17, 2011 at 01:42 PM 0
Share

sample code which case error

avatar image robertmathew · Mar 17, 2011 at 01:43 PM 1
Share

go to edit->project setting->input and the set key which ever you have used in the code

avatar image Michael 20 · Mar 17, 2011 at 01:52 PM 0
Share

if (Input.GetButtonDown ("Crouch")){ if(crouching){ stopCrouching = true; normalSpeed(); return;

2 Replies

  • Sort: 
avatar image
17
Best Answer

Answer by e.bonneville · Mar 17, 2011 at 02:30 PM

If you want to add another input button in the Input manager, follow these steps:

  • There should be a number that says "17". Increase that to 18.
  • At the bottom of the Input manager, an 18th button will have appeared named "Jump".
  • There will now be two "Jump" entries. Open the second one.
  • Set Name to "crouch".
  • Set Positive button: "shift". (Or whatever button you want. List of possible buttons here).
  • That's it! Your script should work now. If it still doesn't, make sure the name in the Input manager is the same as the name you entered in your script.
Comment
Add comment · Show 3 · 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 jordanatorX · Jul 07, 2014 at 03:23 PM 0
Share

when i try and change the positive button, it changes back to what it was....plz help

avatar image Simple_Zomb · Mar 18, 2015 at 09:23 AM 0
Share

You probably spelled something wrong or you didn't press the Enter key after typing :)

avatar image phppyjava · Nov 27, 2015 at 08:51 AM 0
Share

Thanks for your answer...

avatar image
3

Answer by robertmathew · Mar 17, 2011 at 02:05 PM

if (Input.GetButtonDown("Fire1")) {

        //do something
     }

press left clt button for fire1 the positive control button is left clt go to edit->project setting->input to see list of virtual button and there settings

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

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

2 People are following this question.

avatar image avatar image

Related Questions

Input manager cross platform 2 Answers

Input manager dialog box, how to customize an image there? 1 Answer

UnityException: Input Axis Rotate2 is not setup. 0 Answers

UFPS + Adventure Creator (Input Error) 1 Answer

Using an UpdateManager in combination with inputs (issue) 0 Answers

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