Class AndroidOpenXRFaceSubsystem
The Android-OpenXR implementation of the UnityEngine.XR.ARSubsystems.XRFaceSubsystem.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Features.Android
Assembly: Unity.XR.AndroidOpenXR.dll
Syntax
[Preserve]
public sealed class AndroidOpenXRFaceSubsystem : XRFaceSubsystem, ISubsystem
Constructors
AndroidOpenXRFaceSubsystem()
Do not call this directly. Call Create
on a relevant UnityEngine.XR.ARSubsystems.XRFaceSubsystemDescriptor instead.
Declaration
public AndroidOpenXRFaceSubsystem()
Properties
inwardID
UnityEngine.XR.ARSubsystems.TrackableId for the face of the person wearing the headset.
Declaration
public TrackableId inwardID { get; }
Property Value
Type | Description |
---|---|
TrackableId |
Methods
TryGetInwardRegionConfidences(Allocator)
Attempts to get the region confidences associated with the facial blend shapes of the person wearing the headset. This call might fail if no confidence region data can be found for the inward face.
Declaration
public Result<NativeArray<float>> TryGetInwardRegionConfidences(Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
Allocator | allocator | The allocator to use for the returned region confidence native array. |
Returns
Type | Description |
---|---|
Result<NativeArray<float>> | A result of a new native array, allocated with the requested allocation strategy, containing confidence values
corresponding to a AndroidXRFaceConfidenceRegion based on the index of the array. You own the returned native array and are responsible for calling |