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
- Baked Lightmap ”View” button text is aligned incorrectly
- Lightmap Asset icon changes colours after Baked Lightmap Viewer window is opened
- VideoClipImporter preset not applied when applying Preset Selector on already imported video clips
- Frame Debugger gets disabled when any Editor window is maximised and minimised
- TextMeshPro InputField view is not updated when OnEndEdit is triggered
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.