# zMax

> The maximal z point of the box.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int zMax { readonly get; set; }
```

### Remarks

Only points with a z component less than this value are contained in the box.

Sets the maximum value of [BoundsInt](/engine/6000.6/script-reference/unityengine/boundsint.md)'s z point. If you enter a maximum value that is less than the current minimum value, then the entered value becomes the new minimum value and the previous minimum value becomes the new maximum value. The position and size of the [BoundsInt](/engine/6000.6/script-reference/unityengine/boundsint.md) is then adjusted based on the new minimum and maximum values.
