# Sandbox.ParticleEffect.OnPreStep

```csharp
System.Action<float> OnPreStep { get; set; }
```

Called before the particles are stepped.
This allows custom logic to be executed before the simulation advances.

Declared in [Sandbox.ParticleEffect](/api/Sandbox.ParticleEffect).
Assembly: `Sandbox.Engine`.
