Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by GBT · Aug 18, 2013 at 10:21 AM · inputnoobnewbie

newbie: how to setup an input?

I think I've really missed something about it. I'm going to edit --> Project settings --> input

and I can't find anything interactive there, what exactly should I do to make "space" (for instance) an input for my game?

edit: really sorry for misleading, I meant project setting and no render settings

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

2 Replies

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

Answer by EvilSquid · Aug 18, 2013 at 10:33 AM

Hi,

The Input manager is found in edit -> Project Settings -> Input. The reason you can't find it is because you are looking in the wrong settings!

From there you can delete each input you don't want (called Axis) or change certain settings to fit your game. Changing the number of Axis will change the amount of inputs, therefore adding Axis will add new inputs.

For example, if you want to make the Space Bar an action button, you could find the Axes named "Jump" and rename it to something such as "Action" or "Interact".

You can get a better explanation than I can give you here.

Comment
Add comment · Show 2 · 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 GBT · Aug 18, 2013 at 10:46 AM 0
Share

thank you!

avatar image EvilSquid · Aug 18, 2013 at 11:01 AM 0
Share

Simply increase the number of Axis by 1, and it will create a new Axis. Axes is basically just the fancy word for button. From there you can rename it to something like "Action" and assign the key.

To assign the Space bar, scroll down to the label "Positive Button". In the text box for "Postive Button", simply type in "space" without the quotation marks. Then, when you want to add it into your script, you will use

 if(Input.GetButton("Action"))
 Do something;

You can change the GetButton to GetButtonDown or GetButtonUp, depending on what you want. I hope this helped :)

avatar image
0

Answer by legion_44 · Aug 18, 2013 at 10:35 AM

You have to go to Edit -> PROJECT SETTINGS -> Input. As in screenshoot: image


bez tytułu.png (224.9 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

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

16 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

Related Questions

Animation Input / ETC 1 Answer

Add Force At Player 0 Answers

new input system catches inputs too early 1 Answer

Camera movement using touch input 0 Answers

When should I use prefabs? 2 Answers


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