Class XRImageTracking
Tracks an image by its name.
Inheritance
XRImageTracking
Implements
Inherited Members
Namespace: Evergine.Components.XR
Assembly: Evergine.Components.dll
Syntax
public class XRImageTracking : Component, IDependencyObject
Fields
transform
Owner's transform.
Declaration
[BindComponent(true, true, BindComponentSource.Owner, null, true)]
protected Transform3D transform
Field Value
| Type | Description |
|---|---|
| Transform3D |
Properties
ImageName
Gets or sets the image name.
Declaration
public string ImageName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsFixed
Gets or sets a value indicating whether the image is fixed (not being moved) in the real world.
Declaration
public bool IsFixed { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Size
Gets the size of the image target.
Declaration
public Vector3 Size { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
TrackingMethod
Gets the current tracking method.
Declaration
public XRImageTrackingMethod TrackingMethod { get; }
Property Value
| Type | Description |
|---|---|
| XRImageTrackingMethod |
Methods
OnAnchorAdded()
Invoked when a face anchor has been detected.
Declaration
protected virtual void OnAnchorAdded()
OnAnchorRemoved()
Invoked when the 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()
Overrides
UpdateEntityPosition(XRImageTrackable)
Updates the entity's position.
Declaration
protected virtual void UpdateEntityPosition(XRImageTrackable anchor)
Parameters
| Type | Name | Description |
|---|---|---|
| XRImageTrackable | anchor | Image anchor. |