文档

Unity Engine

Unity Engine

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

Makes a multi-control with text fields for entering multiple integers in the same line.
阅读时间1 分钟最后更新于 1 个月前

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.