Search Issue Tracker
Fixed in 4.5.X
Votes
0
Found in
4.3.0f4
Issue ID
576946
Regression
No
Undo.RecordObjects isn't working for objects referencing
Undo.RecordObjects isn't working for objects referencing each other when one gets deleted.
To reproduce:
1. Open the attached project
2. Click "Custom -> Open Window" menu item to bring up a custom editor window
3. Click "Add Tracker"
4. Click "Add Child" twice
5. Expand the hierarchy of the tracker, check that their variables are set properly, same for the script objects inside it
6. Click "Delete Child", notice how one of them will be gone
7. Undo
8. Inspect the scripts and notice the null references
To see how it should work, before repeating the steps, open up the editor window script and replace the RecordObjects for the RegisterCompleteObjectUndo. Notice that at the end, the references are all properly set.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment