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