Interface IOpenXRHandMeshDataSupplier
Used by platform-specific OpenXR features to supply hand mesh data to XRHandSubsystem.
Namespace: UnityEngine.XR.Hands.OpenXR.Meshing
Assembly: Unity.XR.Hands.dll
Syntax
public interface IOpenXRHandMeshDataSupplier
Remarks
Only used by developers connecting an OpenXRFeature
to
TryGetMeshData(out XRHandMeshDataQueryResult, ref XRHandMeshDataQueryParams). If you're a user making
a game or app, you do not need to worry about this type.
Methods
TryGetMeshData(ref XRHandMeshDataQueryResult, ref XRHandMeshDataQueryParams)
Attempt to retrieve hand mesh data from the platform. Only called when TryGetMeshData(out XRHandMeshDataQueryResult, ref XRHandMeshDataQueryParams) is called.
Declaration
bool TryGetMeshData(ref XRHandMeshDataQueryResult result, ref XRHandMeshDataQueryParams queryParams)
Parameters
Type | Name | Description |
---|---|---|
XRHandMeshDataQueryResult | result | Output data for hand meshes. |
XRHandMeshDataQueryParams | queryParams | Input data for hand meshes. |
Returns
Type | Description |
---|---|
bool | Returns true if successful and either hand has valid data. Otherwise, returns false. |