- Home /
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.
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.
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.
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.
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#
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?
" 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 $$anonymous$$anager 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 :)
Your answer
Follow this Question
Related Questions
how doI add collision to my character ? 1 Answer
Compiler Error...Help Needed. 0 Answers
Pong AI/Paddle controller help 1 Answer
Character Controller Jittering Problem 2 Answers