Class XRFaceTrackingMesh
Enables face tracking and renders a face mesh.
Inheritance
XRFaceTrackingMesh
Implements
Inherited Members
Namespace: Evergine.Components.XR
Assembly: Evergine.Components.dll
Syntax
public class XRFaceTrackingMesh : MeshComponent, IDependencyObject
Fields
graphicsContext
Graphics context.
Declaration
[BindService(true)]
protected GraphicsContext graphicsContext
Field Value
| Type | Description |
|---|---|
| GraphicsContext |
transform
Owner's transform.
Declaration
[BindComponent(true, true, BindComponentSource.Owner, null, true)]
protected Transform3D transform
Field Value
| Type | Description |
|---|---|
| Transform3D |
Properties
Model
Gets the model data.
Declaration
public Model Model { get; }
Property Value
| Type | Description |
|---|---|
| Model |
ModelMeshName
Gets the specified mesh name to render.
Declaration
public string ModelMeshName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
OnAnchorAdded()
Invoked when a face anchor has been detected.
Declaration
protected virtual void OnAnchorAdded()
OnAnchorRemoved()
Invoked when a face anchor has been removed.
Declaration
protected virtual void OnAnchorRemoved()
OnAnchorUpdated()
Invoked when the face anchor has been updated.
Declaration
protected virtual void OnAnchorUpdated()
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
| Type | Description |
|---|---|
| bool | True if everything is OK. |
Overrides
OnDetached()
Invoked when the object is detached.
Declaration
protected override void OnDetached()