docs.unity3d.com
    Show / Hide Table of Contents

    Class FaceActor

    A component used to apply face poses to a character in a scene.

    Inheritance
    Object
    FaceActor
    Namespace: Unity.LiveCapture.ARKitFaceCapture
    Syntax
    public sealed class FaceActor : MonoBehaviour

    Properties

    Animator

    The Animator component used by the device for playing takes on this actor.

    Declaration
    public Animator Animator { get; }
    Property Value
    Type Description
    Animator

    Mapper

    The asset that configures how face pose data is mapped to this character's face rig.

    Declaration
    public FaceMapper Mapper { get; }
    Property Value
    Type Description
    FaceMapper

    Methods

    ClearCache()

    Clears the mapper state cache for the actor, causing it to rebuild the next time the face rig updates.

    Declaration
    public void ClearCache()

    SetMapper(FaceMapper)

    Sets the face mapper used by this face rig.

    Declaration
    public void SetMapper(FaceMapper mapper)
    Parameters
    Type Name Description
    FaceMapper mapper

    The mapper to use, or null to clear the current mapper.

    UpdateRig(Boolean)

    Updates the face rig from the current pose.

    Declaration
    public void UpdateRig(bool continuous)
    Parameters
    Type Name Description
    Boolean continuous

    When true, the new pose follows the current pose and they can be smoothed between, while false corresponds to a seek in the animation where the previous pose is invalidated and should not influence the new pose.

    Back to top
    Terms of use
    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