Class ARCoreFaceSubsystem
The ARCore implementation of the XRFaceSubsystem. Do not create this directly. Use the SubsystemManager instead.
Inheritance
ARCoreFaceSubsystem
Inherited Members
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 |
Overrides
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 |