# allocatedWorldCapacity

> Get the number of worlds currently allocated. The world array grows on demand, so this can exceed PhysicsCoreSettings2D.initialWorldCapacity and can also differ from it if that setting was changed without restarting the physics system.

## Definition

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

```csharp
public static int allocatedWorldCapacity { get; }
```
