docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ARCoreFaceSubsystem

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

    Inheritance
    object
    SubsystemWithProvider
    SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>
    TrackingSubsystem<XRFace, XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>
    XRFaceSubsystem
    ARCoreFaceSubsystem
    Implements
    ISubsystem
    Inherited Members
    XRFaceSubsystem.requestedMaximumFaceCount
    XRFaceSubsystem.currentMaximumFaceCount
    XRFaceSubsystem.supportedFaceCount
    XRFaceSubsystem.GetChanges(Allocator)
    XRFaceSubsystem.GetFaceMesh(TrackableId, Allocator, ref XRFaceMesh)
    TrackingSubsystem<XRFace, XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.GetChanges(Allocator)
    SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.OnCreate()
    SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.OnStart()
    SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.OnStop()
    SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.OnDestroy()
    SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.subsystemDescriptor
    SubsystemWithProvider<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.provider
    SubsystemWithProvider.Start()
    SubsystemWithProvider.OnStart()
    SubsystemWithProvider.Stop()
    SubsystemWithProvider.OnStop()
    SubsystemWithProvider.Destroy()
    SubsystemWithProvider.OnDestroy()
    SubsystemWithProvider.running
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARCore
    Assembly: Unity.XR.ARCore.dll
    Syntax
    [Preserve]
    public class ARCoreFaceSubsystem : XRFaceSubsystem, ISubsystem

    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.

    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.

    Implements

    ISubsystem
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)