docs.unity3d.com
    Show / Hide Table of Contents

    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
    Syntax
    [Serializable]
    protected enum ActionType

    Fields

    Name Description Value
    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023