docs.unity3d.com
    Show / Hide Table of Contents

    Class ARKitFaceSubsystem

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

    Inheritance
    Object
    TrackingSubsystem<XRFace, XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>
    XRFaceSubsystem
    ARKitFaceSubsystem
    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.ARKit
    Syntax
    [Preserve]
    public class ARKitFaceSubsystem : XRFaceSubsystem

    Methods

    GetBlendShapeCoefficients(TrackableId, Allocator)

    Gets the blend shape coefficients for the face. Blend shapes describe a number of facial features on a scale of 0..1. For example, how closed is the left eye, how open is the mouth. See ARKitBlendShapeCoefficient for more details.

    Declaration
    public NativeArray<ARKitBlendShapeCoefficient> GetBlendShapeCoefficients(TrackableId faceId, Allocator allocator)
    Parameters
    Type Name Description
    TrackableId faceId

    The TrackableId associated with the face to query.

    Unity.Collections.Allocator allocator

    The allocator to use for the returned NativeArray.

    Returns
    Type Description
    Unity.Collections.NativeArray<ARKitBlendShapeCoefficient>

    A new NativeArray allocated with allocator describing the blend shapes for the face with id faceId. The caller owns the NativeArray and is responsible for calling Dispose on it.

    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