Search Issue Tracker
By Design
Votes
0
Found in
2022.3.39f1
6000.0.12f1
Issue ID
UUM-76433
Regression
No
Undo.isProcessing returns false in ChangeEvent when performing undo operation
Reproduction steps:
1. Open the attached “BugRepro” project
2. From the menu navigate to BugRepo > Open Window
3. Change the “Int Value” field to 6
4. Clear the Console window
5. Press undo (Ctrl+ Z)
6. Observe the Console window
Expected result: No messages are printed
Actual result: “Changed value : 6 -> 0” is printed
Reproducible with: 2022.3.39f1, 6000.0.12f1
Couldn't test with: 2021.3.40f1 ('Undo' does not contain a definition for 'isProcessing')
Reproducible on: Windows 11
Not reproducible on: No other environment tested
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
`Undo.IsProcessing` is functioning as intended here. The system that generates change events occurs after the undo system has finished processing and so `Undo.IsProcessing` is returning the correct result in this case. Change events are generated by watching a given field, when a change is detected; an event is actioned. Change events do not contain any information about whether the origin is from undo.