docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrHandTrackingDataSourceStateEXT

    Extends XrHandJointLocationsEXT to report which hand tracking data source the runtime used to produce the joint locations for the most recent xrLocateHandJointsEXT call. Provided by XR_EXT_hand_tracking_data_source.

    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public readonly struct XrHandTrackingDataSourceStateEXT
    Remarks
    Warning

    Don't initialize this struct with the default parameterless constructor. Use either defaultValue or a constructor with parameters to ensure that type is correctly initialized to HandTrackingDataSourceStateEXT.

    Constructors

    XrHandTrackingDataSourceStateEXT(bool, XrHandTrackingDataSourceEXT)

    Construct an instance with a null next pointer.

    Declaration
    public XrHandTrackingDataSourceStateEXT(bool isActive, XrHandTrackingDataSourceEXT dataSource)
    Parameters
    Type Name Description
    bool isActive

    true if dataSource contains a valid value reported by the runtime. Otherwise, false.

    XrHandTrackingDataSourceEXT dataSource

    The data source the runtime used to produce the joint locations. Only valid when isActive is true.

    XrHandTrackingDataSourceStateEXT(void*, bool, XrHandTrackingDataSourceEXT)

    Construct an instance.

    Declaration
    public XrHandTrackingDataSourceStateEXT(void* next, bool isActive, XrHandTrackingDataSourceEXT dataSource)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    bool isActive

    true if dataSource contains a valid value reported by the runtime. Otherwise, false.

    XrHandTrackingDataSourceEXT dataSource

    The data source the runtime used to produce the joint locations. Only valid when isActive is true.

    Properties

    dataSource

    The data source the runtime used to produce the joint locations for the most recent xrLocateHandJointsEXT call. Only valid when isActive is non-zero.

    Declaration
    public XrHandTrackingDataSourceEXT dataSource { get; }
    Property Value
    Type Description
    XrHandTrackingDataSourceEXT

    defaultValue

    Get a default instance with an initialized type property.

    Declaration
    public static XrHandTrackingDataSourceStateEXT defaultValue { get; }
    Property Value
    Type Description
    XrHandTrackingDataSourceStateEXT

    isActive

    Indicates whether dataSource contains a valid value reported by the runtime.

    Declaration
    public UInt32 isActive { get; }
    Property Value
    Type Description
    uint

    next

    null or a pointer to the next structure in a structure chain.

    Declaration
    public void* next { get; }
    Property Value
    Type Description
    void*

    type

    The XrStructureType of this struct: HandTrackingDataSourceStateEXT.

    Declaration
    public XrStructureType type { get; }
    Property Value
    Type Description
    XrStructureType
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)