mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Merge pull request #70 from nostek/improvement/instanceportlistlabel
Added label before drawing InstancePortList
This commit is contained in:
commit
88d23a07f6
@ -50,6 +50,7 @@ namespace XNodeEditor {
|
|||||||
if (instancePortList) {
|
if (instancePortList) {
|
||||||
Type type = GetType(property);
|
Type type = GetType(property);
|
||||||
XNode.Node.ConnectionType connectionType = inputAttribute != null ? inputAttribute.connectionType : XNode.Node.ConnectionType.Multiple;
|
XNode.Node.ConnectionType connectionType = inputAttribute != null ? inputAttribute.connectionType : XNode.Node.ConnectionType.Multiple;
|
||||||
|
EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName));
|
||||||
InstancePortList(property.name, type, property.serializedObject, port.direction, connectionType);
|
InstancePortList(property.name, type, property.serializedObject, port.direction, connectionType);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -86,6 +87,7 @@ namespace XNodeEditor {
|
|||||||
if (instancePortList) {
|
if (instancePortList) {
|
||||||
Type type = GetType(property);
|
Type type = GetType(property);
|
||||||
XNode.Node.ConnectionType connectionType = outputAttribute != null ? outputAttribute.connectionType : XNode.Node.ConnectionType.Multiple;
|
XNode.Node.ConnectionType connectionType = outputAttribute != null ? outputAttribute.connectionType : XNode.Node.ConnectionType.Multiple;
|
||||||
|
EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName));
|
||||||
InstancePortList(property.name, type, property.serializedObject, port.direction, connectionType);
|
InstancePortList(property.name, type, property.serializedObject, port.direction, connectionType);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user