Version: 2022.3
언어: 한국어

EditorGUI.MultiPropertyField

매뉴얼로 전환
public static void MultiPropertyField (Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator, GUIContent label);
public static void MultiPropertyField (Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator, GUIContent label, EditorGUI.PropertyVisibility visibility);
public static void MultiPropertyField (Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator);
public static void MultiPropertyField (Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator, EditorGUI.PropertyVisibility visibility);

파라미터

position Rectangle on the screen to use for the multi-property field.
valuesIterator The SerializedProperty of the first property to make a control for.
label Optional label to use. If not specified the label of the property itself is used. Use GUIContent.none to not display a label at all.
subLabels Array with small labels to show in front of each float field. There is room for one letter per field only.
visibility Each SerializedProperty during iteration must have this visibility to be drawn. Use EditorGUI.PropertyVisibility.All to draw all SerializedProperties, regardless of its actual visibility.

설명

Makes a multi-control with several property fields in the same line.

The array of labels determine how many properties are shown. No more than 4 properties should be used. The displayed SerializedProperties must be consecutive. The one provided in the valuesIterator argument should be the first of them.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961