MultiPropertyField

示例程序
说明一次性生成多个 PropertyField

用法

public static void MultiPropertyField(Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator, GUIContent label);

public static void MultiPropertyField(Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator);

参数

position

绘制控件的矩形区域。

valuesIterator

第一个受控制的 SerializedProperty

label

可选的标题。若不指定则为属性本身的名字,通过 GUIContent.none 来设定空标签。

subLabels

每个单独控件的小标题。

示例