Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

WorldCounters

struct in UnityEngine.LowLevelPhysics2D

/

Implemented in:UnityEngine.Physics2DModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

PhysicsWorld counters that give details of the world simulation size.

Properties

Property Description
bodyCount The number of all body types.
broadphaseHeight The broadphase tree height for both Dynamic and Kinematic bodies.
contactCount The number of contacts.
islandCount The number of islands.
jointCount The number of joints.
memoryUsed The total byte allocation used by the physics system.
shapeCount The number of shapes.
stackUsed The number of bytes assigned to the Stack allocator.
staticBroadphaseHeight The broadphase tree height for Static bodies.
taskCount The number of multi-threaded tasks requested solving the simulation.

Static Methods

Method Description
Add Add the specified world counters together.
Maximum Find the maximum values the specified world counters.