docs.unity3d.com
    显示 / 隐藏目录

    Struct SerializedFaceData

    Serialized container for recorded face data

    Namespace: Unity.MARS.Recording
    Syntax
    [Serializable]
    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 readonly float[] ExpressionValues { get; }
    Property Value
    Type Description
    Single[]

    ID

    The id of this face

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

    LandmarkPoses

    Array of world poses of available face landmarks

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

    Mesh

    A mesh for this face, if one exists

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

    Pose

    The pose of this face

    Declaration
    public readonly Pose Pose { get; }
    Property Value
    Type Description
    Pose
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)