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
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
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.