Enum OpenXRInteractionFeature.ActionType
The underlying type of an OpenXR action. This enumeration contains all supported control types within OpenXR. This is used when declaring actions in OpenXR with XrAction/>.
Namespace: UnityEngine.XR.OpenXR.Features
Assembly: Unity.XR.OpenXR.dll
Syntax
[Serializable]
protected enum OpenXRInteractionFeature.ActionType
Fields
Name | Description |
---|---|
Axis1D | A single Axis float action type. Represented by an AxisControl in the InputSystem or a float in XR.InputDevice. |
Axis2D | A two-dimensional float action type. Represented by a Vector2Control in the InputSystem or Vector2 in XR.InputDevice. |
Binary | A binary (on/off) action type. Represented by ButtonControl in the Input System or Boolean in XR.InputDevice. |
Count | A value representing the total number of ActionTypes available. This can be used to check if an ActionType value is a valid ActionType. |
Pose | A position and rotation in three-dimensional space. Represented by a PoseControl in the InputSystem, and a series of controls (boolean to represent if it's being tracked or not, unsigned integer for which fields are available, Vector3 for position, Quaternion for rotation) in XR.InputDevice. |
Vibrate | This control represents an output motor. Usable as sequential channels (first declared is channel 0, second is 1, etc...) in both the Input System and XR.InputDevice haptic APIs. |