docs.unity.cn
    Show / Hide Table of Contents

    Class ARCoreFaceSubsystem

    The ARCore implementation of the XRFaceSubsystem. Do not create this directly. Use the SubsystemManager instead.

    Inheritance
    Object
    XRSubsystem<XRFaceSubsystemDescriptor>
    TrackingSubsystem<XRFace, XRFaceSubsystemDescriptor>
    XRFaceSubsystem
    ARCoreFaceSubsystem
    Inherited Members
    XRFaceSubsystem.OnStart()
    XRFaceSubsystem.OnDestroyed()
    XRFaceSubsystem.OnStop()
    XRFaceSubsystem.GetChanges(Allocator)
    XRFaceSubsystem.GetFaceMesh(TrackableId, Allocator, XRFaceMesh)
    XRFaceSubsystem.requestedMaximumFaceCount
    XRFaceSubsystem.currentMaximumFaceCount
    XRFaceSubsystem.supportedFaceCount
    XRFaceSubsystem.provider
    TrackingSubsystem<XRFace, XRFaceSubsystemDescriptor>.GetChanges(Allocator)
    XRSubsystem<XRFaceSubsystemDescriptor>.OnDestroy()
    XRSubsystem<XRFaceSubsystemDescriptor>.Start()
    XRSubsystem<XRFaceSubsystemDescriptor>.Stop()
    XRSubsystem<XRFaceSubsystemDescriptor>.running
    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 Provider specific to ARCore.

    Overrides
    XRFaceSubsystem.CreateProvider()

    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 regions requires a resize. C# Jobs are used, so the allocator must be either Allocator.TempJob or Allocator.Persistent.

    NativeArray<ARCoreFaceRegionData> regions

    An array of ARCoreFaceRegionDatas. If regions is allocated and the correct size, then its memory is reused. Otherwise, it is reallocated.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if allocator is Allocator.Temp.

    InvalidOperationException

    Thrown if allocator is Allocator.None.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Monday, November 7, 2022
    Terms of use