Search Issue Tracker
By Design
Votes
1
Found in
2018.4
2019.2.17f1
2020.2
Issue ID
1242049
Regression
No
Undo does not revert changes made to the Scriptableobject Subassets
Steps to reproduce:
1. Open User-supplied project.
2. Select the "New Scriptable Object With Subassets" Scriptable Object in the Project window.
3. Press "Add Subasset".
4. Press Ctrl+z to undo.
Expected: the sub-asset disappears
Actual: the sub-asset remains
Reproduced in: 2018.4.23f1, 2019.2.21f1, 2019.3.13f1, 2020.1.0b8, 2020.2.0a10
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
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
Resolution Note:
Changes to asset hierarchy cannot be registered using the undo system. Undoing properties (RecordObject or RegisterCompleteObjectUndo) work as expected with the sub-assets but should be registered for the sub-assets and not their parent.
Undo.RecordObject (or Undo.RegisterCompleteObjectUndo) work as expected for the "value" increments undo. They are not working in the attached example because they are registered with the parent rather than with the sub-assets themselves.