Quantcast
Channel: Answers by "doublethink"
Viewing all articles
Browse latest Browse all 29

Answer by doublethink

$
0
0
With Unity's built in Input Manager you can assign a key and an alternate key for each action known as 'axes' which can be called using a string name. You can also add your own custom actions to the input manager. `Input.GetButton("Fire1")` See [http://docs.unity3d.com/Documentation/Manual/Input.html][1] and [http://docs.unity3d.com/Documentation/ScriptReference/Input.GetButton.html][2] [1]: http://docs.unity3d.com/Documentation/Manual/Input.html [2]: http://docs.unity3d.com/Documentation/ScriptReference/Input.GetButton.html

Viewing all articles
Browse latest Browse all 29

Latest Images

Trending Articles





Latest Images