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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
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.