# Maximum(WorldCounters, WorldCounters)

> Find the maximum values the specified world counters.

## Definition

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

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

### Parameters

**** (\[WorldCounters]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/worldcounters)): The first world counters to find the maximum of.**** (\[WorldCounters]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/worldcounters)): The second world counters to find the maximum of.

### Returns

| Type                                                                                             | Description                                  |
| ------------------------------------------------------------------------------------------------ | -------------------------------------------- |
| [WorldCounters](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/worldcounters.md) | The maximum values from both world counters. |
