MLFacialExpression
NameSpace: MagicLeap
Inherits from:
MLAutoAPISingleton< MLFacialExpression >,
MLLazySingleton< T >
Public Methods
MLResult.Code GetEyeData
Get the latest eye data from the Facial Expression system.
public static MLResult.Code GetEyeData(
out EyeData data
)
Parameters
| Type | Name | Description |
|---|---|---|
| out EyeData | data | A structure containing information about eye expressions. |
MLResult.Code UpdateSettings
Updates Facial Expression system with new settings.
public static MLResult.Code UpdateSettings(
in Settings settings
)
Parameters
| Type | Name | Description |
|---|---|---|
| in Settings | settings | A structure containing settings for the facial expressions. |
Returns:
Protected Methods
StartAPI
Start the API.
protected virtual override MLResult.Code StartAPI()
Reimplements: StartAPI
StopAPI
Stop the API.
protected virtual override MLResult.Code StopAPI()
Reimplements: StopAPI
Public Enums
EyeExpressionType
Available facial expressions.
| Enumerator | Value | Description |
|---|---|---|
| BlinkLeft | 0 | Blinking the left eye. |
| BlinkRight | Blinking of the right eye. | |
| LidTightenerLeft | Lower Lid upward movement of the left eye. | |
| LidTightenerRight | Lower Lid upward movement of the right eye. | |
| EyeOpennessLeft | Upper lid upward movement of the left eye. | |
| EyeOpennessRight | Upper lid upward movement of the right eye. | |
| CheekRaiserLeft | Upward cheek movement, left. | |
| CheekRaiserRight | Upward cheek movement, right. | |
| BrowLowererLeft | Downward brow movement, left. | |
| BrowLowererRight | Downward brow movement, right. | |
| BrowRaiserLeft | Upward brow movement, left side. | |
| BrowRaiserRight | Upward brow movement, right side. |