Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorGUI.MultiFloatField

static function MultiFloatField(position: Rect, subLabels: GUIContent[], values: float[]): void;
static void MultiFloatField(Rect position, GUIContent[] subLabels, float[] values);
static def MultiFloatField(position as Rect, subLabels as GUIContent[], values as float[]) as void
static function MultiFloatField(position: Rect, label: GUIContent, subLabels: GUIContent[], values: float[]): void;
static void MultiFloatField(Rect position, GUIContent label, GUIContent[] subLabels, float[] values);
static def MultiFloatField(position as Rect, label as GUIContent, subLabels as GUIContent[], values as float[]) as void

Parameters

positionRectangle on the screen to use for the float field.
labelOptional label to display in front of the float field.
subLabelsArray with small labels to show in front of each float field. There is room for one letter per field only.
valuesArray with the values to edit.

Description

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