Struct ARKitBlendShapeCoefficient
An entry that specifies how much of a specific ARKitBlendShapeLocation is present in the current expression on the face.
Namespace: UnityEngine.XR.ARKit
Syntax
public struct ARKitBlendShapeCoefficient : IEquatable<ARKitBlendShapeCoefficient>
Remarks
You get a list of these for every expression a face makes.
Properties
blendShapeLocation
The specific ARKitBlendShapeLocation being examined.
Declaration
public ARKitBlendShapeLocation blendShapeLocation { get; }
Property Value
Type | Description |
---|---|
ARKitBlendShapeLocation |
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 |
---|---|
Single |
Methods
Equals(Object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The |
Returns
Type | Description |
---|---|
Boolean |
|
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 |
---|---|
Boolean |
|
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code generated from this object's fields. |
Overrides
Operators
Equality(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 |
---|---|
Boolean |
|
Inequality(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 |
---|---|
Boolean |
|