protected override void DrawPort(GUIContent label) { if (IsVisible) { SirenixEditorGUI.BeginBox(); if (NodePortInfo.IsInput) { using (new EditorGUILayout.HorizontalScope()) { CallNextDrawer(label); if (GUILayout.Button("Remove")) { PortResolver.ForgetDynamicPort(Property); } } } else { using (new EditorGUILayout.HorizontalScope()) { if (GUILayout.Button("Remove")) { PortResolver.ForgetDynamicPort(Property); } CallNextDrawer(label); } } SirenixEditorGUI.EndBox(); } }