Search Issue Tracker
By Design
Votes
0
Found in
2021.3.41f1
2022.3.39f1
6000.0.12f1
Issue ID
UUM-76486
Regression
No
Undo Actions are ungrouped when a custom Editor window inspecting the referenced Instance ID is open
How reproduce:
1. Open the “IDUndo.zip“ project
2. Open the 'Test Window' (BugRepo > Open Window)
3. Open the Undo History Window (Edit > Undo History, or CTRL + U)
4. Select "Assets/New Test Asset" in the Project Window
5. Select the Asset field in the Inspector window to focus on it
6. Press the “Delete” key
7. Observe the Undo History Window
8. Undo once
9. Observe the “TestWindow” window and the Inspector
Expected results: The Instance ID and the Asset reference are both restored
Actual results: Only the Instance ID is restored
Reproducible in: 2021.3.41f1, 2022.3.39f1, 6000.0.12f1
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Notes:
- When the “TestWindow“ is not opened, the Instance ID is not modified, but as soon as it is opened and an Undo is made, the Undo name changes from “Modified Asset in New Test Asset“ to “Modified Instance ID in“
- Sometimes after undoing the “Modified Instance ID in“ the action cannot be redone
- If able to redo, both actions will be redone on one call, but only one action will be undone on one undo call
- In 2021.3.41f1, the actions do not seem to be ungrouped, but when redoing the action, no action is redone in the Undo History
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
This is an unfortunate intersection between two systems with different concerns, but is expected behaviour.
The modification to Instance ID isn't performed (and therefore the undo action isn't created) by `TrackPropertyValue` until after "Modified Asset in Test Asset" is created, flushed and finalised. This means they will not be grouped into one action in the undo system.