# MultiFloatField

> Makes a multi-control with text fields for entering multiple floats in the same line.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## MultiFloatField(Rect, GUIContent, GUIContent\[], float\[])

Makes a multi-control with text fields for entering multiple floats in the same line.

```csharp
public static void MultiFloatField(Rect position, GUIContent label, GUIContent[] subLabels, float[] values)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): Rectangle on the screen to use for the float field.**** (\[GUIContent]\(/engine/6000.6/script-reference/unityengine/guicontent)): Optional label to display in front of the float field.**** (\[GUIContent\[]]\(/engine/6000.6/script-reference/unityengine/guicontent)): Array with small labels to show in front of each float field. There is room for one letter per field only.**** (\[float\[]]\(https\://learn.microsoft.com/dotnet/api/system.single)): Array with the values to edit.

### Remarks

The height of the multi-control depends on the total width of its editor window. The control is drawn within the specified rectangle (position). If the control does not fit, it is drawn outside the rectangle. Additional Resources: [EditorGUIUtility.wideMode](/engine/6000.6/script-reference/unityeditor/editorguiutility/widemode.md).

## MultiFloatField(Rect, GUIContent\[], float\[])

Makes a multi-control with text fields for entering multiple floats in the same line.

```csharp
public static void MultiFloatField(Rect position, GUIContent[] subLabels, float[] values)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): Rectangle on the screen to use for the float field.**** (\[GUIContent\[]]\(/engine/6000.6/script-reference/unityengine/guicontent)): Array with small labels to show in front of each float field. There is room for one letter per field only.**** (\[float\[]]\(https\://learn.microsoft.com/dotnet/api/system.single)): Array with the values to edit.

### Remarks

The height of the multi-control depends on the total width of its editor window. The control is drawn within the specified rectangle (position). If the control does not fit, it is drawn outside the rectangle. Additional Resources: [EditorGUIUtility.wideMode](/engine/6000.6/script-reference/unityeditor/editorguiutility/widemode.md).
