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
- [iOS] Unable to select streaming apps when using broadcasting on iOS device
- [iOS] Specular lightning is inconsistent when using iOS
- TransformAccessArray.Add behaves differently when the argument is null and the argument is an int
- [iOS] App crashes when trying to use WebCamTexture depth data on back triple camera
- [Mobile] Only second base Camera out of two base Cameras with priority 1 and -1 is rendered in the Player
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.