public void AddItemsToMenu(GenericMenu menu) { menu.AddItem(new GUIContent("Set Unexecute"), false, SetUnexecute); void SetUnexecute() { isExecuting = false; TableParseEditorWindow wnd = GetWindow <TableParseEditorWindow>(); wnd.UnbindUpdate(); SetActive(wnd.btnBreakProgress, false); SetActive(wnd.btnExecute, true); } }
public static void ShowWindow() { TableParseEditorWindow wnd = GetWindow <TableParseEditorWindow>(); wnd.titleContent = new GUIContent("TableParseEditorWindow"); }