private void SendEvent(string eventName, bool exitGUI) { if (this.m_DelegateView != null) { Event e = EditorGUIUtility.CommandEvent(eventName); this.m_DelegateView.SendEvent(e); if (exitGUI) { GUIUtility.ExitGUI(); } } }