Struct ARTrackablesChangedEventArgs<TTrackable>
Event arguments for the ARTrackableManager.trackablesChanged
event.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
public readonly struct ARTrackablesChangedEventArgs<TTrackable> : IEquatable<ARTrackablesChangedEventArgs<TTrackable>> where TTrackable : ARTrackable
Type Parameters
Name | Description |
---|---|
TTrackable | The trackable type. |
Constructors
ARTrackablesChangedEventArgs(ReadOnlyList<TTrackable>, ReadOnlyList<TTrackable>, ReadOnlyList<KeyValuePair<TrackableId, TTrackable>>)
Constructs an ARTrackablesChangedEventArgs<TTrackable>.
Declaration
public ARTrackablesChangedEventArgs(ReadOnlyList<TTrackable> added, ReadOnlyList<TTrackable> updated, ReadOnlyList<KeyValuePair<TrackableId, TTrackable>> removed)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyList<TTrackable> | added | The collection of trackables that have been added. |
ReadOnlyList<TTrackable> | updated | The collection of trackables that have been updated. |
ReadOnlyList<KeyValuePair<TrackableId, TTrackable>> | removed | The collection of trackables that have been removed. |
Properties
added
The collection of trackables that have been added.
Declaration
public ReadOnlyList<TTrackable> added { get; }
Property Value
Type | Description |
---|---|
ReadOnlyList<TTrackable> |
removed
The collection of trackables that have been removed.
Declaration
public ReadOnlyList<KeyValuePair<TrackableId, TTrackable>> removed { get; }
Property Value
Type | Description |
---|---|
ReadOnlyList<KeyValuePair<TrackableId, TTrackable>> |
updated
The collection of trackables that have been updated.
Declaration
public ReadOnlyList<TTrackable> updated { get; }
Property Value
Type | Description |
---|---|
ReadOnlyList<TTrackable> |
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The |
Returns
Type | Description |
---|---|
bool | Returns true if |
Overrides
Equals(ARTrackablesChangedEventArgs<TTrackable>)
Tests for equality.
Declaration
public bool Equals(ARTrackablesChangedEventArgs<TTrackable> other)
Parameters
Type | Name | Description |
---|---|---|
ARTrackablesChangedEventArgs<TTrackable> | other | The other ARTrackablesChangedEventArgs<TTrackable> to compare against. |
Returns
Type | Description |
---|---|
bool | Returns true if every field in |
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code generated from this object's fields. |
Overrides
ToString()
Generates a string representation of this ARTrackablesChangedEventArgs<TTrackable>.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this ARTrackablesChangedEventArgs<TTrackable>. |
Overrides
Operators
operator ==(ARTrackablesChangedEventArgs<TTrackable>, ARTrackablesChangedEventArgs<TTrackable>)
Tests for equality. Same as Equals(ARTrackablesChangedEventArgs<TTrackable>).
Declaration
public static bool operator ==(ARTrackablesChangedEventArgs<TTrackable> lhs, ARTrackablesChangedEventArgs<TTrackable> rhs)
Parameters
Type | Name | Description |
---|---|---|
ARTrackablesChangedEventArgs<TTrackable> | lhs | The left-hand side of the comparison. |
ARTrackablesChangedEventArgs<TTrackable> | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool | Returns true if |
operator !=(ARTrackablesChangedEventArgs<TTrackable>, ARTrackablesChangedEventArgs<TTrackable>)
Tests for inequality. Same as !
Equals(ARTrackablesChangedEventArgs<TTrackable>).
Declaration
public static bool operator !=(ARTrackablesChangedEventArgs<TTrackable> lhs, ARTrackablesChangedEventArgs<TTrackable> rhs)
Parameters
Type | Name | Description |
---|---|---|
ARTrackablesChangedEventArgs<TTrackable> | lhs | The left-hand side of the comparison. |
ARTrackablesChangedEventArgs<TTrackable> | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool | Returns true if |