subStepCount
The number of simulation sub-steps that occurred during the last simulation step.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
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, Physics2D.maxSubStepCount, Physics2D.minSubStepFPS and PhysicsScene2D.subStepLostTime.