docs.unity3d.com
    Show / Hide Table of Contents

    Class ARCoreFaceSubsystem

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

    Inheritance
    Object
    UnityEngine.XR.ARSubsystems.TrackingSubsystem<XRFace, XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>
    XRFaceSubsystem
    ARCoreFaceSubsystem
    Inherited Members
    XRFaceSubsystem.GetChanges(Allocator)
    XRFaceSubsystem.GetFaceMesh(TrackableId, Allocator, XRFaceMesh)
    XRFaceSubsystem.requestedMaximumFaceCount
    XRFaceSubsystem.currentMaximumFaceCount
    XRFaceSubsystem.supportedFaceCount
    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 Provider specific to ARCore.

    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023