# zMax

> Returns or specifies the maximum angular motion about the z-axis.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.7/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor

```csharp
public float zMax { get; set; }
```

### Remarks

The value returned by this property depends on the current value of the [JointAngularLimitHandle.zMotion](/engine/6000.7/script-reference/unityeditor/imgui/controls/jointangularlimithandle/zmotion.md) property. If it is [ConfigurableJointMotion.Locked](/engine/6000.7/script-reference/unityengine/configurablejointmotion/locked.md), then it will always return 0. If it is [ConfigurableJointMotion.Free](/engine/6000.7/script-reference/unityengine/configurablejointmotion/free.md), then it will always return the upper limit of [JointAngularLimitHandle.zRange](/engine/6000.7/script-reference/unityeditor/imgui/controls/jointangularlimithandle/zrange.md). If it is [ConfigurableJointMotion.Limited](/engine/6000.7/script-reference/unityengine/configurablejointmotion/limited.md), then it will be clamped between the upper limit of [JointAngularLimitHandle.zRange](/engine/6000.7/script-reference/unityeditor/imgui/controls/jointangularlimithandle/zrange.md) and the current value of [JointAngularLimitHandle.zMin](/engine/6000.7/script-reference/unityeditor/imgui/controls/jointangularlimithandle/zmin.md).

Additional Resources: [JointAngularLimitHandle.zMin](/engine/6000.7/script-reference/unityeditor/imgui/controls/jointangularlimithandle/zmin.md), [JointAngularLimitHandle.zMotion](/engine/6000.7/script-reference/unityeditor/imgui/controls/jointangularlimithandle/zmotion.md), [JointAngularLimitHandle.zRange](/engine/6000.7/script-reference/unityeditor/imgui/controls/jointangularlimithandle/zrange.md).
