subStepCount
The number of simulation sub-steps that occurred during the last simulation step.
阅读时间1 分钟最后更新于 21 天前
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, PhysicsScene2D.subStepLostTime