void OnRemove() { // tell the user that they might cchange things up. if (EditorUtility.DisplayDialog("Sub Graph Will Change", "If you remove a slot and save the sub graph, you might change other graphs that are using this sub graph.\n\nDo you want to continue?", "Yes", "No")) { m_Node.owner.owner.RegisterCompleteObjectUndo("Removing Slot"); m_Node.RemoveSlot(); } }
void OnRemove() { m_Node.RemoveSlot(); }