Wiki

Case Status
Log In

Wiki

 
Home ยป Action Reference»Input Actions»Get Axis
Index
Navigation
Community Wiki

Get Axis

Gets the value of the specified Input Axis and stores it in a float variable.

Axis Name
The name of the axis. Set in the Unity Input Manager.
Multiplier
Normally axis values are in the range -1 to 1. Use the multiplier to make this range bigger. E.g., A multiplier of 100 returns values from -100 to 100.
Store
The float variable to store the value in.
Every Frame
Get the axis value every frame. This should be true most of the time, but there might be times when you only want to get the value once.

 

Default Axis Names:

  • "Horizontal"
  • "Vertical"
  • "Mouse X"
  • "Mouse Y"
  • "Mouse ScrollWheel"

 

See Also: Unity Get Axis docs.

Tags:

Last modified on 5/30/2019 12:37 AM by User.

  • RSS Feed