Equals
Two ArchetypeChunk instances are equal if they reference the same block of chunk memory.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
Equals(Object)
Two ArchetypeChunk instances are equal if they reference the same block of chunk memory.
public override bool Equals(object compare)
Parameters
An object
Returns
Type | Description |
|---|---|
| bool | True if |
Equals(ArchetypeChunk)
Two ArchetypeChunk instances are equal if they reference the same block of chunk and entity component store memory.
public bool Equals(ArchetypeChunk archetypeChunk)
Parameters
Another ArchetypeChunk instance
Returns
Type | Description |
|---|---|
| bool | True, if both ArchetypeChunk instances reference the same memory or both contain null memory references. |