Struct ARKitBlendShapeCoefficient
An entry that specifies how much of a specific ARKitBlendShapeLocation is present in the current expression on the face.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARKit
Assembly: Unity.XR.ARKit.FaceTracking.dll
Syntax
public struct ARKitBlendShapeCoefficient : IEquatable<ARKitBlendShapeCoefficient>
Remarks
Call GetBlendShapeCoefficients(TrackableId, Allocator) to get the list of coefficients for each blend shape location of the current facial expression.
Properties
blendShapeLocation
The specific ARKitBlendShapeLocation being examined.
Declaration
public ARKitBlendShapeLocation blendShapeLocation { get; }
Property Value
Type | Description |
---|---|
ARKitBlendShapeLocation | Identifies the action unit for this coefficient value. |
coefficient
A value from 0.0 to 1.0 that specifies how active the associated ARKitBlendShapeLocation is in this expression.
Declaration
public float coefficient { get; }
Property Value
Type | Description |
---|---|
float | A coefficient of zero represents a neutral position of this blend shape, while a coefficient of one represents a fully articulated position. |
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Equals(ARKitBlendShapeCoefficient)
Tests for equality.
Declaration
public bool Equals(ARKitBlendShapeCoefficient other)
Parameters
Type | Name | Description |
---|---|---|
ARKitBlendShapeCoefficient | other | The other ARKitBlendShapeCoefficient to compare against. |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code generated from this object's fields. |
Overrides
Operators
operator ==(ARKitBlendShapeCoefficient, ARKitBlendShapeCoefficient)
Tests for equality. Same as Equals(ARKitBlendShapeCoefficient).
Declaration
public static bool operator ==(ARKitBlendShapeCoefficient lhs, ARKitBlendShapeCoefficient rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKitBlendShapeCoefficient | lhs | The left-hand side of the comparison. |
ARKitBlendShapeCoefficient | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|
operator !=(ARKitBlendShapeCoefficient, ARKitBlendShapeCoefficient)
Tests for inequality. Same as !
Equals(ARKitBlendShapeCoefficient).
Declaration
public static bool operator !=(ARKitBlendShapeCoefficient lhs, ARKitBlendShapeCoefficient rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKitBlendShapeCoefficient | lhs | The left-hand side of the comparison. |
ARKitBlendShapeCoefficient | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|