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 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 |