GetEnumerator()
Gets an enumerator which allows iteration of the collection. This is typically used implicitly by "foreach".
阅读时间1 分钟最后更新于 1 个月前
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. |