Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MultiIntField(Rect, GUIContent[], int[])

Makes a multi-control with text fields for entering multiple integers in the same line.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void MultiIntField(Rect position, GUIContent[] subLabels, int[] values)

Parameters

position

Rectangle on the screen to use for the integer field.

subLabels

Array with small labels to show in front of each int field. There is room for one letter per field only.

values

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.