Class IUsesFacialExpressionsMethods
Namespace: Unity.MARS
Syntax
public static class IUsesFacialExpressionsMethods
Methods
SubscribeToExpression(IUsesFacialExpressions, MRFaceExpression, Action<Single>, Action<Single>)
Subscribe to the facial expression
Declaration
public static void SubscribeToExpression(this IUsesFacialExpressions obj, MRFaceExpression expression, Action<float> onEngage, Action<float> onDisengage = null)
Parameters
Type | Name | Description |
---|---|---|
IUsesFacialExpressions | obj | |
MRFaceExpression | expression | |
Action<Single> | onEngage | |
Action<Single> | onDisengage |
UnsubscribeToExpression(IUsesFacialExpressions, MRFaceExpression, Action<Single>, Action<Single>)
Unsubscribe from the facial expression
Declaration
public static void UnsubscribeToExpression(this IUsesFacialExpressions obj, MRFaceExpression expression, Action<float> onEngage, Action<float> onDisengage = null)
Parameters
Type | Name | Description |
---|---|---|
IUsesFacialExpressions | obj | |
MRFaceExpression | expression | |
Action<Single> | onEngage | |
Action<Single> | onDisengage |