Class ARCoreFaceSubsystem
The ARCore implementation of the XRFaceSubsystem. Do not create this directly. Use the SubsystemManager instead.
Inheritance
UnityEngine.XR.ARSubsystems.TrackingSubsystem<XRFace, XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>
ARCoreFaceSubsystem
Inherited Members
UnityEngine.XR.ARSubsystems.TrackingSubsystem<UnityEngine.XR.ARSubsystems.XRFace, UnityEngine.XR.ARSubsystems.XRFaceSubsystem, UnityEngine.XR.ARSubsystems.XRFaceSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRFaceSubsystem.Provider>.GetChanges(Unity.Collections.Allocator)
Namespace: UnityEngine.XR.ARCore
Syntax
[Preserve]
public class ARCoreFaceSubsystem : XRFaceSubsystem
Methods
CreateProvider()
Creates the ARCore-specific implementation which will service the XRFaceSubsystem
.
Declaration
protected override XRFaceSubsystem.Provider CreateProvider()
Returns
Type | Description |
---|---|
XRFaceSubsystem.Provider | A new instance of the |
GetRegionPoses(TrackableId, Allocator, ref NativeArray<ARCoreFaceRegionData>)
Get all the available ARCoreFaceRegions.
Declaration
public void GetRegionPoses(TrackableId trackableId, Allocator allocator, ref NativeArray<ARCoreFaceRegionData> regions)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | trackableId | The id associated with the face to query. |
Allocator | allocator | The allocator to use if |
NativeArray<ARCoreFaceRegionData> | regions | An array of ARCoreFaceRegionDatas. If |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if |
InvalidOperationException | Thrown if |