Struct TrackableCollection<TTrackable>
A collection for ARTrackable<TSessionRelativeData, TTrackable>s.
This collection implements an IEnumerable-like interface which can be used
in a foreach
statement.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
public struct TrackableCollection<TTrackable> : IEquatable<TrackableCollection<TTrackable>>
Type Parameters
Name | Description |
---|---|
TTrackable | The concrete ARTrackable<TSessionRelativeData, TTrackable>. |
Constructors
Name | Description |
---|---|
TrackableCollection(Dictionary<TrackableId, TTrackable>) | Constructs a TrackableCollection<TTrackable>. |
Properties
Name | Description |
---|---|
this[TrackableId] | Retrieves a |
count | Returns the number of trackables in this collection. |
Methods
Name | Description |
---|---|
Equals(object) | Checks the equality of this object against this TrackableCollection<TTrackable>. |
Equals(TrackableCollection<TTrackable>) | Checks the equality of this TrackableCollection<TTrackable> against another TrackableCollection<TTrackable> of the same |
GetEnumerator() | Creates an |
GetHashCode() | Retrieves the hashcode of the TrackableCollection<TTrackable>. |
TryGetTrackable(TrackableId, out TTrackable) | Attempts to retrieve a trackable by |
Operators
Name | Description |
---|---|
operator ==(TrackableCollection<TTrackable>, TrackableCollection<TTrackable>) | Overloads the |
operator !=(TrackableCollection<TTrackable>, TrackableCollection<TTrackable>) | Overloads the |