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