this[]
An indexer allowing access to any Collider2D in the collection.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
this[int]
public readonly Collider2D this[int index] { get; }
Parameters
Returns
Type | Description |
|---|---|
| Collider2D |
Remarks
This must be in the range of 0 to ColliderArray2D.Length-1.