示例#1
0
 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();
     }
 }
示例#2
0
 void OnRemove()
 {
     m_Node.RemoveSlot();
 }