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 image name.
Declaration
public string ImageName { get; set; }
Property Value
Type | Description |
---|---|
string |
IsFixed
Gets or sets a value indicating whether image is fixed (not being moved) in 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 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()
Overrides
UpdateEntityPosition(XRImageTrackable)
Updates entity position.
Declaration
protected virtual void UpdateEntityPosition(XRImageTrackable anchor)
Parameters
Type | Name | Description |
---|---|---|
XRImageTrackable | anchor | Image anchor. |