static void DelSelNode() { var selobj = UnityEditor.Selection.activeGameObject; if (selobj != null) { sman.DeleteNode(selobj.name); } }