# Maximum(WorldCounters, WorldCounters)

> Find the maximum values the specified world counters.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public static PhysicsWorld.WorldCounters Maximum(PhysicsWorld.WorldCounters countersA, PhysicsWorld.WorldCounters countersB)
```

### Parameters

**** (\[WorldCounters]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld/worldcounters)): The first world counters to find the maximum of.**** (\[WorldCounters]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld/worldcounters)): The second world counters to find the maximum of.

### Returns

| Type                                                                                                         | Description                                  |
| ------------------------------------------------------------------------------------------------------------ | -------------------------------------------- |
| [WorldCounters](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld/worldcounters.md) | The maximum values from both world counters. |
