RectInt.PositionEnumerator
An iterator that allows you to iterate over all positions within the RectInt.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Implements: IEnumerator<Vector2Int>, IEnumerator, IDisposable
public struct RectInt.PositionEnumerator : IEnumerator<Vector2Int>, IEnumerator, IDisposable
Properties
Property | Description |
|---|---|
| Current | Current position of the enumerator. |
Methods
Method | Description |
|---|---|
| GetEnumerator | Returns this as an iterator that allows you to iterate over all positions within the RectInt. |
| MoveNext | Moves the enumerator to the next position. |
| Reset | Resets this enumerator to its starting state. |