private void OnEnable() { Undo.undoRedoPerformed += PrecessUndo; EditorActions.Clear(); EditorState.Clear(); EditorState.Repaint = Repaint; States = (States)target; SerializedState = serializedObject; EditorGroup.Enable(States.Group); }
private void PrecessUndo() { EditorGroup.Enable(States.Group); EditorState.Reorder(States.Group); Repaint(); }