• 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
Question by Damien78 · Sep 19, 2011 at 01:29 PM · controller

accessing imput scripts

So I know this may be a newb question but, how do you access the imput manager scripts for game controls. I can get into imput manager, change the size and axes and stuff, but am having trouble finding out where to access and add new scripts. I"ve tried a few things but no luck so far...any help? step by step would be great. thanks.

Comment

People who like this

0 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 asafsitner · Sep 19, 2011 at 01:46 PM 0
Share

If you want to add an axis, go to the input manager and at the top you'll see the axis array size, just increase it by the amount of axes you want to add and edit them.

1 Reply

  • Sort: 
avatar image

Answer by syclamoth · Sep 19, 2011 at 02:57 PM

Is this what you're looking for? Given that you know how to mess around with adding and modifying new Inputs in the input manager, to access that in scripting you use the different functions in the Input class.

Comment

People who like this

0 Show 4 · 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 Damien78 · Sep 19, 2011 at 03:48 PM 0
Share

This is what I am having trouble with. I know how to add new axis and such, but cannot find out how to open the window to write new script. How do I access the actual scripts for the imput manager? It's probably an obvious thing,like a nearby button it's just eluding me....I can't find it anywhere. how do I open the window to write the "get.axis.etc" script for my new imput....sorry for being ignorant.

avatar image syclamoth · Sep 19, 2011 at 04:10 PM 0
Share

Ah well. Then you probably need to go through these tutorials to get yourself up to speed on scripting! It's not exactly a button as such- you need to implement your script as a component on a gameObject- to create the script, right-click on your project view and click the Create -> Javascript or C#

avatar image Damien78 · Sep 19, 2011 at 05:00 PM 0
Share

I know I do need to go through these tutorials...and thank you for pointing me in the right direction. but is there no way to access the existing scripts for the game controls in imput manager...and just add more scripts for the controls I wish to add? or do I just open up imput manager and "add component- script"and write the script from scratch? does this script need to be anywhere in particular I guess is what I'm asking...every time I add a script it seems to go into new behavior script in the project bar. is this right?

avatar image asafsitner · Sep 19, 2011 at 05:09 PM 0
Share

" do I just open up imput manager and "add component- script"and write the script from scratch" <- This. Except you'll want to add the script component to the relevant GameObject (in the hierarchy). The Input Manager isn't something you can add scripts to. To manipulate how input affects the world you'll have to write your own scripts. You should go over the tutorials scylamoth mentioned and the rest of the Unity manual (highly recommended) and then a lot of things will be much clearer :)

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Is there a script for moving a rigidbody without using a character controller? 1 Answer

Character Controller Script 3 Answers

Changing Head Look Controller Target 1 Answer

how doI add collision to my character ? 1 Answer

Getting Raw Joystick Input via Script 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