# yMax

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

## Definition

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

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

### Remarks

The value returned by this property depends on the current value of the [JointAngularLimitHandle.yMotion](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/ymotion.md) property. If it is [ConfigurableJointMotion.Locked](/engine/6000.5/script-reference/unityengine/configurablejointmotion/locked.md), then it will always return 0. If it is [ConfigurableJointMotion.Free](/engine/6000.5/script-reference/unityengine/configurablejointmotion/free.md), then it will always return the upper limit of [JointAngularLimitHandle.yRange](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/yrange.md). If it is [ConfigurableJointMotion.Limited](/engine/6000.5/script-reference/unityengine/configurablejointmotion/limited.md), then it will be clamped between the upper limit of [JointAngularLimitHandle.yRange](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/yrange.md) and the current value of [JointAngularLimitHandle.yMin](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/ymin.md).

Additional Resources: [JointAngularLimitHandle.yMin](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/ymin.md), [JointAngularLimitHandle.yMotion](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/ymotion.md), [JointAngularLimitHandle.yRange](/engine/6000.5/script-reference/unityeditor/imgui/controls/jointangularlimithandle/yrange.md).
