Struct ARMeshesChangedEventArgs
Event arguments for the meshes
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 ARMeshes
Declaration
public ARMeshesChangedEventArgs(List<MeshFilter> added, List<MeshFilter> updated, List<MeshFilter> removed)
Parameters
Type | Name | Description |
---|---|---|
List<Mesh |
added | The list of |
List<Mesh |
updated | The list of |
List<Mesh |
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<Mesh |
removed
The list of MeshFilter
s removed since the last event.
Declaration
public readonly List<MeshFilter> removed { get; }
Property Value
Type | Description |
---|---|
List<Mesh |
updated
The list of MeshFilter
s updated since the last event.
Declaration
public readonly List<MeshFilter> updated { get; }
Property Value
Type | Description |
---|---|
List<Mesh |
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 |
---|---|---|
ARMeshes |
other | The ARMeshes |
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(ARMeshes
Declaration
public static bool operator ==(ARMeshesChangedEventArgs lhs, ARMeshesChangedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARMeshes |
lhs | The first ARMeshes |
ARMeshes |
rhs | The second ARMeshes |
Returns
Type | Description |
---|---|
bool | The same value as Equals(ARMeshes |
operator !=(ARMeshesChangedEventArgs, ARMeshesChangedEventArgs)
Compares for inequality. Same as !
Equals(ARMeshes
Declaration
public static bool operator !=(ARMeshesChangedEventArgs lhs, ARMeshesChangedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARMeshes |
lhs | The first ARMeshes |
ARMeshes |
rhs | The second ARMeshes |
Returns
Type | Description |
---|---|
bool | The same value as |