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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.