Class MetaOpenXRHandMeshData
Enables access to Meta hand mesh data.
Implements
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Features.Meta
Assembly: Unity.XR.OpenXR.Features.MetaHandMeshData.dll
Syntax
public class MetaOpenXRHandMeshData : OpenXRFeature, IOpenXRHandMeshDataSupplier
Fields
featureId
The feature id string. This is used to give the feature a well known id for reference.
Declaration
public const string featureId
Field Value
| Type | Description |
|---|---|
| string |
Methods
GetValidationChecks(List<ValidationRule>, BuildTargetGroup)
Gets validation rules for the MetaOpenXRHandMeshData feature. Called by the OpenXR project validation system when this feature is enabled in the Editor.
Declaration
protected override void GetValidationChecks(List<OpenXRFeature.ValidationRule> rules, BuildTargetGroup targetGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| List<OpenXRFeature.ValidationRule> | rules | List to add validation rules to. |
| BuildTargetGroup | targetGroup | The build target group being validated. |
Overrides
OnSubsystemStart()
Initializes the native resources required to provide hand mesh data.
Declaration
protected override void OnSubsystemStart()
Overrides
TryGetMeshData(ref XRHandMeshDataQueryResult, ref XRHandMeshDataQueryParams)
Attempts to retrieve hand mesh data for both hands from the OpenXR runtime.
Declaration
public bool TryGetMeshData(ref XRHandMeshDataQueryResult result, ref XRHandMeshDataQueryParams queryParams)
Parameters
| Type | Name | Description |
|---|---|---|
| XRHandMeshDataQueryResult | result | The query result to populate with mesh data for each hand. |
| XRHandMeshDataQueryParams | queryParams | Parameters controlling the query, including the allocator to use for native arrays. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if mesh data was successfully retrieved for at least one hand, false otherwise. |