Search Issue Tracker
Won't Fix
Votes
0
Found in
4.5.0a1
Issue ID
577846
Regression
Yes
Undo/redo does not work in some instances
To reproduce:
1. Open project, open editor Custom -> Open
This editor has 4 buttons:
- Create Trackers
- Create Method 1
- Create Method 2
- Create Method 3
The create trackers, simply creates parent objects for the 3 methods (it gets called when the editor is opened too).
2. Select Tracker Method 1
3. Open up it's list in the inspector so you can view it's elements
4. Click Create Method 1, notice the child added in the hierarchy and now the list has 1 element
5. Cmd+z to undo, child it now gone, list has 0 elements
6. Cmd+shift+z to redo, child is back, list has 1 element but the element is null
Now repeat steps 2-6 with the other method objects / buttons.
What you'll see:
- With Method 1: The list has a null element
- With Method 2: It works
- With Method 3: When you undo, the script disappears from the tracker object (!!)
Not sure if the Method 3 API is even something that should be used for that or not, but what I assume is that it would call RegisterCompleteObjectUndo on it and all it's children.
Comments (1)
-
shubhamswaraj2021
Aug 19, 2020 13:32
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
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
- Shader transparency, discard, and clip are not working when using the Player
- Error is thrown when clicking on warning in the console
- Long IL2CPP build time when project has a .ufbx library wrapper
- Cursor doesn't change to the resizing when using the Rect Tool and the Sprite is too close to the bottom of the Scene View
- InvalidOperationException exception is thrown when Editor Default Text Rendering Mode is set to "Bitmap" and Editor Font is set to "System Font" and an array is expanded in the Inspector Window
Resolution Note:
The different methods work differently and are not expected to work in all cases