# subStepCount

> The number of simulation sub-steps that occurred during the last simulation step.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public int subStepCount { get; }
```

### Remarks

When simulation sub-stepping occurs, the number of sub-steps that run are monitored with the actual count available for analysis here. The cost of sub-stepping should be monitored with the Unity Profiler using the Physics 2D Module.

Additional Resources: [Physics2D.useSubStepping](/engine/6000.0/script-reference/unityengine/physics2d/usesubstepping.md), [Physics2D.maxSubStepCount](/engine/6000.0/script-reference/unityengine/physics2d/maxsubstepcount.md), [Physics2D.minSubStepFPS](/engine/6000.0/script-reference/unityengine/physics2d/minsubstepfps.md) and [PhysicsScene2D.subStepLostTime](/engine/6000.0/script-reference/unityengine/physicsscene2d/substeplosttime.md).
