Struct ARTrackedObjectsChangedEventArgs
Event arguments for the trackedObjectsChanged event.
Namespace: UnityEngine.XR.ARFoundation
Syntax
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 List<ARTrackedObject> added { readonly get; }
Property Value
Type | Description |
---|---|
List<ARTrackedObject> |
removed
The list of ARTrackedObjects removed since the last event.
Declaration
public List<ARTrackedObject> removed { readonly get; }
Property Value
Type | Description |
---|---|
List<ARTrackedObject> |
updated
The list of ARTrackedObjects udpated since the last event.
Declaration
public List<ARTrackedObject> updated { readonly 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 |
---|---|
Boolean |
|
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 |
---|---|
Boolean |
|
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | 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
Equality(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 |
---|---|
Boolean |
|
Inequality(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 |
---|---|
Boolean |
|