Home »Action Reference»Input Actions»Get Button Down
Index

Get Button Down

Sends an FSM Event when a button is pressed.

Button Name
The name of the button. Defined in the Unity Input Manager.
Send Event
The event to send when the button is pressed.
Store
Store the result in a Bool Variable. True if pressed, otherwise false.

 

NOTES

Button Names are defined in the Unity Input Manager.

For example:

Control Primary Secondary
Fire1 left ctrl left mouse button
Fire2 left alt right mouse button
Fire3 left cmd middle mouse button

Since the Input Manager defines keyboard and mouse mappings there is some overlap with other actions like Get Mouse Button Down and Get Key Down.

You can also use the Input Manager to map game controller inputs. For example:

XBox Controller: http://wiki.unity3d.com/index.php?title=Xbox360Controller