Class XRTrackableItems
Stores the current trackable items.
Implements
Inherited Members
Namespace: Evergine.Framework.XR.TrackableItems
Assembly: Evergine.Framework.dll
Syntax
public abstract class XRTrackableItems : DisposableObject, IDisposable
Constructors
XRTrackableItems()
Initializes a new instance of the XRTrackable
Declaration
public XRTrackableItems()
Fields
TrackablesById
Backing field for XRTrackable
Declaration
public ConcurrentDictionary<Guid, XRTrackableItem> TrackablesById
Field Value
Type | Description |
---|---|
Concurrent |
Methods
AddTrackables(IEnumerable<XRTrackableItem>)
Executed when new trackables are detected.
Declaration
public void AddTrackables(IEnumerable<XRTrackableItem> addedTrackables)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<XRTrackable |
addedTrackables | Collection of detected trackables. |
ClearAllTrackables()
Clears cached trackables.
Declaration
public void ClearAllTrackables()
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
FindTrackable(Guid)
Looks for an XRTrackable
Declaration
public XRTrackableItem FindTrackable(Guid trackableId)
Parameters
Returns
Type | Description |
---|---|
XRTrackable |
The XRTrackable |
RemoveTrackables(IEnumerable<Guid>)
Executed when trackables stop to be detected.
Declaration
public void RemoveTrackables(IEnumerable<Guid> removedTrackables)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Guid> | removedTrackables | Collection of updated trackables. |
UpdateTrackables(IEnumerable<XRTrackableItem>)
Executed when already detected trackables are updated.
Declaration
public void UpdateTrackables(IEnumerable<XRTrackableItem> updatedTrackables)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<XRTrackable |
updatedTrackables | Collection of updated trackables. |
Events
AddedTrackables
Event launched when one or more trackables have been added
Declaration
public event EventHandler<IEnumerable<XRTrackableItem>> AddedTrackables
Event Type
Type | Description |
---|---|
Event |
RemovedTrackables
Event launched when one or more trackables have been removed
Declaration
public event EventHandler<IEnumerable<XRTrackableItem>> RemovedTrackables
Event Type
Type | Description |
---|---|
Event |
UpdatedTrackables
Event launched when one or more trackables have been updated
Declaration
public event EventHandler<IEnumerable<XRTrackableItem>> UpdatedTrackables
Event Type
Type | Description |
---|---|
Event |