# subStepCount

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

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/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: [\_useSubStepping](/engine/6000.7/script-reference/unityengine/physics2d/usesubstepping.md), [\_maxSubStepCount](/engine/6000.7/script-reference/unityengine/physics2d/maxsubstepcount.md), [\_minSubStepFPS](/engine/6000.7/script-reference/unityengine/physics2d/minsubstepfps.md), [\_subStepLostTime](/engine/6000.7/script-reference/unityengine/physicsscene2d/substeplosttime.md)
