mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 09:46:03 +08:00
InstancePortList custom PropertyHeight supported
This commit is contained in:
parent
0b008c77eb
commit
bad05a6e64
@ -285,6 +285,10 @@ namespace XNodeEditor {
|
|||||||
Vector2 pos = rect.position + (port.IsOutput?new Vector2(rect.width + 6, 0) : new Vector2(-36, 0));
|
Vector2 pos = rect.position + (port.IsOutput?new Vector2(rect.width + 6, 0) : new Vector2(-36, 0));
|
||||||
NodeEditorGUILayout.PortField(pos, port);
|
NodeEditorGUILayout.PortField(pos, port);
|
||||||
};
|
};
|
||||||
|
list.elementHeightCallback = (int index) => {
|
||||||
|
SerializedProperty itemData = arrayData.GetArrayElementAtIndex(index);
|
||||||
|
return EditorGUI.GetPropertyHeight(itemData);
|
||||||
|
};
|
||||||
list.drawHeaderCallback =
|
list.drawHeaderCallback =
|
||||||
(Rect rect) => {
|
(Rect rect) => {
|
||||||
EditorGUI.LabelField(rect, label);
|
EditorGUI.LabelField(rect, label);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user