# capacity

> Get the current world capacities reached since the world was created. This reflects the peak object counts and can be used to presize a _capacity for similar worlds. Peaks are not capped, so a peak above PhysicsWorld.WorldCapacity.MaxCapacity is clamped to it when used to presize another world.

## Definition

* **Type:** Property
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public PhysicsWorld.WorldCapacity capacity { get; }
```

### Remarks

See [\_capacity](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/capacity.md).
