Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


primary2DAxisClick

Represents the primary 2D axis being clicked or otherwise depressed.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
[NoAutoStaticsCleanup]public static InputFeatureUsage<bool> primary2DAxisClick

Remarks

The primary 2D axis is the Vector2 input feature tagged with _primary2DAxis. A click means that the user presses the thumbstick or touchpad inward, toward the body of the controller. Moving the thumbstick or touchpad to one side changes the value of _primary2DAxis, but doesn't set this feature to true.