Class ARKitFaceSubsystem
The ARKit implementation of the XRFaceSubsystem
. Do not create this directly. Use the SubsystemManager
instead.
Inheritance
XRFaceSubsystem
ARKitFaceSubsystem
Implements
Inherited Members
XRFaceSubsystem.requestedMaximumFaceCount
XRFaceSubsystem.currentMaximumFaceCount
XRFaceSubsystem.supportedFaceCount
SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.OnCreate()
SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.OnStart()
SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.OnStop()
SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.OnDestroy()
SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.subsystemDescriptor
SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.provider
SubsystemWithProvider.OnStart()
SubsystemWithProvider.OnStop()
SubsystemWithProvider.OnDestroy()
Namespace: UnityEngine.XR.ARKit
Assembly: Unity.XR.ARKit.FaceTracking.dll
Syntax
[Preserve]
public class ARKitFaceSubsystem : XRFaceSubsystem, ISubsystem
Methods
GetBlendShapeCoefficients(TrackableId, Allocator)
Gets the blend shape coefficients for the face. Blend shapes describe a number of facial features on a scale of 0..1. For example, how closed is the left eye, how open is the mouth. See ARKitBlendShapeCoefficient for more details.
Declaration
public NativeArray<ARKitBlendShapeCoefficient> GetBlendShapeCoefficients(TrackableId faceId, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | faceId | The |
Allocator | allocator | The allocator to use for the returned |
Returns
Type | Description |
---|---|
NativeArray<ARKitBlendShapeCoefficient> | A new |