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 specify the mesh name to render.
Declaration
public string ModelMeshName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
OnAnchorAdded()
Invoked when face anchor has been detected.
Declaration
protected virtual void OnAnchorAdded()
OnAnchorRemoved()
Invoked when face anchor has been removed.
Declaration
protected virtual void OnAnchorRemoved()
OnAnchorUpdated()
Invoked when 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 all is OK. |
Overrides
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()