# BoundsInt.PositionEnumerator

> An iterator that allows you to iterate over all positions within the BoundsInt.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEnumerator\<Vector3Int>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1), [IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.ienumerator), [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct BoundsInt.PositionEnumerator : IEnumerator<Vector3Int>, IEnumerator, IDisposable
```

## Properties

| Property                                                                                       | Description                         |
| ---------------------------------------------------------------------------------------------- | ----------------------------------- |
| [Current](/engine/6000.6/script-reference/unityengine/boundsint/positionenumerator/current.md) | Current position of the enumerator. |

## Methods

| Method                                                                                                     | Description                                                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetEnumerator](/engine/6000.6/script-reference/unityengine/boundsint/positionenumerator/getenumerator.md) | Returns this as an iterator that allows you to iterate over all positions within the [BoundsInt](/engine/6000.6/script-reference/unityengine/boundsint.md). |
| [MoveNext](/engine/6000.6/script-reference/unityengine/boundsint/positionenumerator/movenext.md)           | Moves the enumerator to the next position.                                                                                                                  |
| [Reset](/engine/6000.6/script-reference/unityengine/boundsint/positionenumerator/reset.md)                 | Resets this enumerator to its starting state.                                                                                                               |
