Search Issue Tracker
Won't Fix
Votes
0
Found in
5.3.5f1
Issue ID
816544
Regression
No
OnDestroy is not called while Undo is performed second time
How to reproduce:
1. Open the attached project and click Window -> Undo Test. Make sure Console is visible.
2. In the TestWindow click "Create instance". Console will show "Test scriptable object enabled".
3. Press Edit -> Undo and observe in Console "Test scriptable object destroyed".
4. Press Edit -> Redo. Console logs "Test scriptable object enabled" again.
5. Press Edit -> Undo. Nothing happens in the Console.
6. Press Edit -> Redo again and see "Test scriptable object enabled" again.
Expected behavior: OnDestroy is called while Undo is performed second time.
Actual behaviuor: OnDestroy is not called while Undo is performed second time.
Reproducible: 5.2.4f1, 5.3.6f1, 5.4.0f2, 5.5.04a
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
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
- Mouse and Pointer Events are called incorrectly in ScrollView with XRUIInputModule
Resolution Note:
This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being. We understand that this will cause problems for some users, and so may address in a future version.