GetEnumerator()
Gets an enumerator which allows iteration of the collection. This is typically used implicitly by "foreach".
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public readonly IEnumerator<Collider2D> GetEnumerator()
Returns
Type | Description |
|---|---|
| IEnumerator<Collider2D> | An ernumerator used to iterate the collection. |