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

Themes

-

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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.