docs.unity3d.com
    Show / Hide Table of Contents

    Struct SerializedFaceData

    Serialized container for recorded face data

    Namespace: Unity.MARS.Data.Recorded
    Syntax
    [Serializable]
    [MovedFrom("Unity.MARS.Recording")]
    public struct SerializedFaceData

    Constructors

    SerializedFaceData(IMRFace, MRFaceLandmark[], MRFaceExpression[])

    Constructs a SerializedFaceData from an IMRFace

    Declaration
    public SerializedFaceData(IMRFace face, MRFaceLandmark[] landmarkEnumValues, MRFaceExpression[] expressionEnumValues)
    Parameters
    Type Name Description
    IMRFace face

    Face data to serialize

    MRFaceLandmark[] landmarkEnumValues

    Enumeration values to map 1:1 with serialized array of face landmark poses

    MRFaceExpression[] expressionEnumValues

    Enumeration values to map 1:1 with serialized array of face expression coefficients

    Properties

    ExpressionValues

    Array of 0-1 coefficients representing the display of available facial expressions

    Declaration
    public float[] ExpressionValues { get; }
    Property Value
    Type Description
    Single[]

    ID

    The id of this face

    Declaration
    public MarsTrackableId ID { get; }
    Property Value
    Type Description
    MarsTrackableId

    LandmarkPoses

    Array of world poses of available face landmarks

    Declaration
    public Pose[] LandmarkPoses { get; }
    Property Value
    Type Description
    Pose[]

    Mesh

    A mesh for this face, if one exists

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

    Pose

    The pose of this face

    Declaration
    public Pose Pose { get; }
    Property Value
    Type Description
    Pose
    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