A collection of Collider2D.
The collection of Collider2D can be enumerated using "foreach" or its contents accessed via an indexer. The collection does not allocate any managed memory but must be disposed of.
This collection can only be created by Unity and is typically returned as results from physics queries.
Property | Description |
---|---|
Length | The number of Collider2D elements in the collection. |
this[int] | An indexer allowing access to any Collider2D in the collection. |
Method | Description |
---|---|
Dispose | Disposes of the native memory allocated by the collection. |
GetEnumerator | Gets an enumerator which allows iteration of the collection. This is typically used implicitly by "foreach". |