Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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
1
Question by dqflynn · Jan 14, 2016 at 12:31 AM · inputcontrols

How to change control keys

Ok, so... I am experimenting with Unity standard assets, and I want to know how to change the car controls from WASD to the arrow keys. It would be a lot of help if you could give me a script to paste, or at least tell me where to change things! Thank you!

Comment
Add comment · Show 1
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 dqflynn · Jan 14, 2016 at 11:28 PM 0
Share

Ok, so, it IS very helpful to know that I can go to input and change the inputs. However, I am trying to make a multiplayer game, not just single player. So, basically, I need one car to use wasd, and one car to use the arrows. Thanks for what's here so far though!

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by DroidifyDevs · Jan 14, 2016 at 10:51 AM

Go to Edit> project settings > input

There you can change the keys. If you are calling the keys manually in a script, then do that OG23 told you.

Don't forget to mark the best answer, and next time Bing or Google your question as I found the same thing here: http://answers.unity3d.com/questions/11681/how-do-you-change-key-map-arrow-keys-wsad-etc.html

Not only does it help the community, but it also benefits you as you can get an answer in 10 seconds and not have to waste time posting and waiting on UA.

Good luck coding and gaming!

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 hulahoolgames · Jan 14, 2016 at 12:39 AM

If they are using KeyCode to find the WASD then just replace KeyCode.A with KeyCode.LeftArrow, KeyCode.D with KeyCode.RightArrow, KeyCode.W with KeyCode.UpArrow and KeyCode.S with KeyCode.DownArrow in the code. Hope this helps!

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 rob5300 · Jan 14, 2016 at 10:31 AM

I assume the Unity standard assets reference Input.GetAxis() or Input.GetButton(), rather than referencing specific keys. If this is true you can just change the assigned keys in the Input settings in editor. Alter the default movement keys to what you wish to use and test.

Where to change input settings: http://docs.unity3d.com/Manual/class-InputManager.html Input.GetAxis api reference: http://docs.unity3d.com/ScriptReference/Input.GetAxis.html

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.

Follow this Question

Answers Answers and Comments

36 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Quick Attack/Heavy Attack on Same Input 1 Answer

Why does the keyboard control what button is selected? 2 Answers

ps3 controller messed up the normal controls 1 Answer

Unpausing with the new InputSystem 1 Answer

New input system - How do I access Up/Down/Left/Right? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges