undo_redo
Manage Unity's undo/redo stack: undo, redo, view history, clear history, and group operations for consolidated undo steps.
Instructions
Controls Unity's Undo/Redo system. Actions:
undo: Perform undo operation
redo: Perform redo operation
get_history: Get undo/redo history stack
clear: Clear all undo history
begin_group: Begin an undo group (combine multiple operations)
end_group: End an undo group
set_group_name: Set name for current undo group
record_object: Record object state for undo
flush: Flush all recorded operations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Undo/Redo action to perform | |
| objectId | No | Instance ID of object to record | |
| groupName | No | Name for undo group | |
| objectPath | No | Path of object to record | |
| historyLimit | No | Maximum number of history items to return (default: 20) |