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