Class MetaOpenXRHandMeshData
Enables access to Meta hand mesh data.
Implements
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.OpenXR.Features.Meta
Assembly: Unity.XR.OpenXR.Features.MetaHandMeshData.dll
Syntax
[OpenXRFeature(UiName = "Meta Quest: Hand Mesh Data", BuildTargetGroups = new BuildTargetGroup[] { BuildTargetGroup.Android, BuildTargetGroup.Standalone }, Company = "Unity", Desc = "Access to Meta hand mesh data via XR_FB_hand_tracking_mesh.", DocumentationLink = "https://docs.unity3d.com/Packages/com.unity.xr.openxr@1.0/manual/features/hand-mesh-data.html", OpenxrExtensionStrings = "XR_FB_hand_tracking_mesh", Category = "Feature", FeatureId = "com.unity.openxr.feature.metahandmeshdata", Version = "0.1.0")]
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 = "com.unity.openxr.feature.metahandmeshdata"
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. |