Class ARFaceFeature
Enables AR Foundation face support via OpenXR for Android XR devices.
Inherited Members
Object.MemberwiseClone()
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)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.OpenXR.Features.Android
Assembly: Unity.XR.AndroidOpenXR.dll
Syntax
[OpenXRFeature(UiName = "Android XR: Faces", BuildTargetGroups = new BuildTargetGroup[] { BuildTargetGroup.Android, BuildTargetGroup.Standalone }, Company = "Unity Technologies", Desc = "AR Foundation face detection support on Android XR devices", DocumentationLink = "https://docs.unity3d.com/Packages/com.unity.xr.androidxr-openxr@7.0/manual/features/faces.html", OpenxrExtensionStrings = "XR_ANDROID_eye_tracking XR_ANDROID_face_tracking", Category = "Feature", FeatureId = "com.unity.openxr.feature.arfoundation-androidxr-face", Version = "0.1.0")]
public class ARFaceFeature : AndroidXROpenXRFeature
Fields
featureId
The feature id string. This is used to give the feature an id for reference.
Declaration
public const string featureId = "com.unity.openxr.feature.arfoundation-androidxr-face"
Field Value
| Type | Description |
|---|---|
| string |
Methods
GetValidationChecks(List<ValidationRule>, BuildTargetGroup)
Validation Rules for ARFaceFeature.
Declaration
protected override void GetValidationChecks(List<OpenXRFeature.ValidationRule> rules, BuildTargetGroup targetGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| List<OpenXRFeature.ValidationRule> | rules | |
| BuildTargetGroup | targetGroup |
Overrides
OnSessionBegin(ulong)
Called after xrSessionBegin.
Declaration
protected override void OnSessionBegin(ulong xrSession)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | xrSession | Handle of the xrSession |
Overrides
OnSessionEnd(ulong)
Called before xrEndSession.
Declaration
protected override void OnSessionEnd(ulong xrSession)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | xrSession | Handle of the xrSession |
Overrides
OnSessionStateChange(int, int)
Called when the XR session state changes
Declaration
protected override void OnSessionStateChange(int oldState, int newState)
Parameters
| Type | Name | Description |
|---|---|---|
| int | oldState | Previous state |
| int | newState | New state |
Overrides
OnSubsystemCreate()
Instantiates Android OpenXR Face subsystem instance, but does not start it. (Start/Stop is typically handled by AR Foundation managers.)
Declaration
protected override void OnSubsystemCreate()
Overrides
OnSubsystemDestroy()
Destroys the face subsystem.
Declaration
protected override void OnSubsystemDestroy()