October 2017
Intermediate to advanced
568 pages
11h 8m
English
The input module features several named axes. An input axis is a named, linear space that maps to an input device and typically generates normalized values when input events are received. For example, the horizontal axis, by default, maps to the left and right keys on the keyboard. Left corresponds to -1, right corresponds to 1, and pressing nothing corresponds to the neutral 0. This convention is especially convenient for creating movement scripts with vectors. Other input axes are officially buttons, which have an on and off (boolean) status instead. The named input axes can be accessed, edited, and configured from within the Unity editor, by choosing Edit | Project Settings | Input from the application menu:
Read now
Unlock full access