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
    TrackingSubsystem<XRFace, XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>
    XRFaceSubsystem
    ARCoreFaceSubsystem
    Inherited Members
    XRFaceSubsystem.GetChanges(Allocator)
    XRFaceSubsystem.GetFaceMesh(TrackableId, Allocator, XRFaceMesh)
    XRFaceSubsystem.requestedMaximumFaceCount
    XRFaceSubsystem.currentMaximumFaceCount
    XRFaceSubsystem.supportedFaceCount
    TrackingSubsystem<XRFace, XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.GetChanges(Allocator)
    Namespace: UnityEngine.XR.ARCore
    Syntax
    [Preserve]
    public class ARCoreFaceSubsystem : XRFaceSubsystem

    Methods

    GetRegionPoses(TrackableId, Allocator, ref NativeArray<ARCoreFaceRegionData>)

    Gets 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.

    Unity.Collections.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.

    Unity.Collections.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