Struct ARMeshesChangedEventArgs
Event arguments for the meshesChanged event.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
public struct ARMeshesChangedEventArgs : IEquatable<ARMeshesChangedEventArgs>
Constructors
ARMeshesChangedEventArgs(List<MeshFilter>, List<MeshFilter>, List<MeshFilter>)
Constructs an ARMeshesChangedEventArgs.
Declaration
public ARMeshesChangedEventArgs(List<MeshFilter> added, List<MeshFilter> updated, List<MeshFilter> removed)
Parameters
Type | Name | Description |
---|---|---|
List<MeshFilter> | added | The list of |
List<MeshFilter> | updated | The list of |
List<MeshFilter> | removed | The list of |
Properties
added
The list of MeshFilter
s added since the last event.
Declaration
public readonly List<MeshFilter> added { get; }
Property Value
Type | Description |
---|---|
List<MeshFilter> |
removed
The list of MeshFilter
s removed since the last event.
Declaration
public readonly List<MeshFilter> removed { get; }
Property Value
Type | Description |
---|---|
List<MeshFilter> |
updated
The list of MeshFilter
s udpated since the last event.
Declaration
public readonly List<MeshFilter> updated { get; }
Property Value
Type | Description |
---|---|
List<MeshFilter> |
Methods
Equals(object)
IEquatable
interface.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare for equality. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Equals(ARMeshesChangedEventArgs)
Compares other
for equality.
Declaration
public bool Equals(ARMeshesChangedEventArgs other)
Parameters
Type | Name | Description |
---|---|---|
ARMeshesChangedEventArgs | other | The ARMeshesChangedEventArgs to compare for equality. |
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 struct, including the number of added, updated, and removed meshes.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this struct. |
Overrides
Operators
operator ==(ARMeshesChangedEventArgs, ARMeshesChangedEventArgs)
Compares for equality. Same as Equals(ARMeshesChangedEventArgs).
Declaration
public static bool operator ==(ARMeshesChangedEventArgs lhs, ARMeshesChangedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARMeshesChangedEventArgs | lhs | The first ARMeshesChangedEventArgs to compare. |
ARMeshesChangedEventArgs | rhs | The second ARMeshesChangedEventArgs to compare. |
Returns
Type | Description |
---|---|
bool | The same value as Equals(ARMeshesChangedEventArgs) |
operator !=(ARMeshesChangedEventArgs, ARMeshesChangedEventArgs)
Compares for inequality. Same as !
Equals(ARMeshesChangedEventArgs).
Declaration
public static bool operator !=(ARMeshesChangedEventArgs lhs, ARMeshesChangedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARMeshesChangedEventArgs | lhs | The first ARMeshesChangedEventArgs to compare. |
ARMeshesChangedEventArgs | rhs | The second ARMeshesChangedEventArgs to compare. |
Returns
Type | Description |
---|---|
bool | The same value as |