# loopIndex

> The current index of loop.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.VFX](/engine/6000.7/script-reference/unityengine/vfx.md)
* **Assembly:** UnityEngine.VFXModule

```csharp
public int loopIndex { get; set; }
```

### Remarks

This value should be less than [\_loopCount](/engine/6000.7/script-reference/unityengine/vfx/vfxspawnerstate/loopcount.md). Unity compares this value to [\_loopCount](/engine/6000.7/script-reference/unityengine/vfx/vfxspawnerstate/loopcount.md) at the current iteration to decide on the next state.
