Abstract Hidden ChildrenOptionalisInternalConstructor: booleanAbstractcommitVirtualApplies the command, committing the change.
The UndoRedo stack on which the command is inserted on.
ProtectedinitializeInitializes undoable command.
The description of the command.
OptionalobjectUUID: UUIDThe uuid of the object affected by the command.
AbstractrevertVirtualReverts the command, reverting the change previously done with commit.
The UndoRedo stack on which the command is inserted on.
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.