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 |
Returns
| Type | Description |
|---|---|
| bool |
|