Abstract Hidden ChildrenOptionalisInternalConstructor: booleanAbstractcommitVirtual
Applies the command, committing the change.
The UndoRedo stack on which the command is inserted on.
ProtectedinitializeInitializes undoable command.
The description of the command.
OptionalobjectUUID: UUID
The uuid of the object affected by the command.
AbstractrevertVirtual
Reverts the command, reverting the change previously done with commit.
The UndoRedo stack on which the command is inserted on.
Virtual
Whether the command should be grouped with similar commands in the undo stack.
The UndoableCommand class is the base implementation for undoable commands and actions in the UndoRedo system.
Note
It is highly advised to not create manual undo commands for changes to scene objects and other objects and instead rely on UndoRedo#createUndoForSceneObject or UndoRedo#createUndoForObject and similar APIs. The reason is that there might be important considerations such as Editor domain-reloading to consider, which are easily forgotten.