Struct ARTrackedObjectsChangedEventArgs
Event arguments for the trackedObjectsChanged event.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
[Obsolete("ARTrackedObjectsChangedEventArgs has been deprecated in AR Foundation version 6.0. Use ARTrackablesChangedEventArgs<TTrackable> instead.", false)]
public struct ARTrackedObjectsChangedEventArgs : IEquatable<ARTrackedObjectsChangedEventArgs>
Constructors
ARTrackedObjectsChangedEventArgs(List<ARTrackedObject>, List<ARTrackedObject>, List<ARTrackedObject>)
Constructs an ARTrackedObjectsChangedEventArgs.
Declaration
public ARTrackedObjectsChangedEventArgs(List<ARTrackedObject> added, List<ARTrackedObject> updated, List<ARTrackedObject> removed)
Parameters
Type | Name | Description |
---|---|---|
List<ARTrackedObject> | added | The list of ARTrackedObjects added since the last event. |
List<ARTrackedObject> | updated | The list of ARTrackedObjects updated since the last event. |
List<ARTrackedObject> | removed | The list of ARTrackedObjects removed since the last event. |
Properties
added
The list of ARTrackedObjects added since the last event.
Declaration
public readonly List<ARTrackedObject> added { get; }
Property Value
Type | Description |
---|---|
List<ARTrackedObject> |
removed
The list of ARTrackedObjects removed since the last event.
Declaration
public readonly List<ARTrackedObject> removed { get; }
Property Value
Type | Description |
---|---|
List<ARTrackedObject> |
updated
The list of ARTrackedObjects udpated since the last event.
Declaration
public readonly List<ARTrackedObject> updated { get; }
Property Value
Type | Description |
---|---|
List<ARTrackedObject> |
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Equals(ARTrackedObjectsChangedEventArgs)
Tests for equality.
Declaration
public bool Equals(ARTrackedObjectsChangedEventArgs other)
Parameters
Type | Name | Description |
---|---|---|
ARTrackedObjectsChangedEventArgs | other | The other ARTrackedObjectsChangedEventArgs to compare against. |
Returns
Type | Description |
---|---|
bool |
|
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 ARTrackedObjectsChangedEventArgs.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this ARTrackedObjectsChangedEventArgs. |
Overrides
Operators
operator ==(ARTrackedObjectsChangedEventArgs, ARTrackedObjectsChangedEventArgs)
Tests for equality. Same as Equals(ARTrackedObjectsChangedEventArgs).
Declaration
public static bool operator ==(ARTrackedObjectsChangedEventArgs lhs, ARTrackedObjectsChangedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARTrackedObjectsChangedEventArgs | lhs | The left-hand side of the comparison. |
ARTrackedObjectsChangedEventArgs | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|
operator !=(ARTrackedObjectsChangedEventArgs, ARTrackedObjectsChangedEventArgs)
Tests for inequality. Same as !
Equals(ARTrackedObjectsChangedEventArgs).
Declaration
public static bool operator !=(ARTrackedObjectsChangedEventArgs lhs, ARTrackedObjectsChangedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARTrackedObjectsChangedEventArgs | lhs | The left-hand side of the comparison. |
ARTrackedObjectsChangedEventArgs | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|