docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetFaceMesh

    GetFaceMesh(TrackableId, Allocator, ref XRFaceMesh)

    Get the mesh data associated with the face with faceId. The faceMesh is reused if it is the correct size; otherwise, it is disposed and reallocated using allocator.

    Declaration
    public virtual void GetFaceMesh(TrackableId faceId, Allocator allocator, ref XRFaceMesh faceMesh)
    Parameters
    Type Name Description
    TrackableId faceId

    The TrackableId for a XRFace.

    Allocator allocator

    The allocator to use for the returned data if a resize is necessary. Must be Allocator.TempJob or Allocator.Persistent.

    XRFaceMesh faceMesh

    The container for the mesh data to either re-use or re-allocate.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if allocator is Allocator.Temp

    InvalidOperationException

    Thrown if allocator is Allocator.None

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023