Class TrackSpatialAnchor
Track a spatial anchor.
Inheritance
TrackSpatialAnchor
Implements
Inherited Members
Namespace: Evergine.Components.XR
Assembly: Evergine.Components.dll
Syntax
public class TrackSpatialAnchor : Behavior, IDependencyObject
Fields
SpatialAnchor
The Spatial Anchor.
Declaration
public SpatialAnchor SpatialAnchor
Field Value
Type | Description |
---|---|
SpatialAnchor |
Properties
AnchorId
Gets or sets the Anchor Id.
Declaration
public string AnchorId { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
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
StoreAnchor()
Store the current entity position as an spatial anchor with the current Anchor Id.
Declaration
public void StoreAnchor()
Update(TimeSpan)
Allows this instance to execute custom logic during its Update
.
Declaration
protected override void Update(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The game time. |