Namespace Unity.AppUI.Undo
Classes
MacroCommand
A macro command is a command that contains other commands.
UndoCommand
Base class for undoable commands.
UndoStack
An undo stack maintains a stack of commands that have been applied in your application.
New commands are pushed on the stack using Push(UndoCommand). Commands can be undone and redone using Undo() and Redo().
UndoStack keeps track of the current command. This is the command which will be executed by the next call to Redo(). The index of this command is returned by index. The state of the edited object can be rolled forward or back using index. If the top-most command on the stack has already been redone, index is equal to count.
UndoStack provides *command compression*, command *macros*, and supports the concept of a *clean state*.