Skip to content

NodeEditorGUILayout.PortPair

Thor Brigsted edited this page Sep 20, 2018 · 2 revisions

Draws an input and an output port on the same line

public static void PortPair(NodePort input, NodePort output);
Parameters Summary
input
output
// Editor/ExampleNodeEditor.cs

[CustomNodeEditor(typeof(ExampleNode))]
public class ExampleNodeEditor : NodeEditor {
    public override void OnBodyGUI() {
        // Draw list with instance ports
        NodeEditorGUILayout.PortPair(GetInputPort("myInput"), GetOutputPort("myOutput"));
    }
}
Clone this wiki locally