docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IXRHandExtendedDataReadHandler<TData>

    Interface for providing per-hand extended data of a specific type. Implementations are registered with RegisterHandExtendedDataHandler<TData>(IXRHandExtendedDataReadHandler<TData>) and queried via TryGetExtendedData<TData>(Handedness, out TData).

    Namespace: UnityEngine.XR.Hands
    Assembly: Unity.XR.Hands.dll
    Syntax
    public interface IXRHandExtendedDataReadHandler<TData> : IXRHandExtendedDataReadHandler where TData : unmanaged
    Type Parameters
    Name Description
    TData

    The type of extended data this handler provides.

    Methods

    TryGetData(Handedness, out TData)

    Attempts to retrieve extended data for the specified hand.

    Declaration
    bool TryGetData(Handedness handedness, out TData data)
    Parameters
    Type Name Description
    Handedness handedness

    Which hand to retrieve data for.

    TData data

    When this method returns true, contains the extended data for the specified hand.

    Returns
    Type Description
    bool

    true if data is provided for the specified hand; otherwise false.

    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)