Search Issue Tracker
Fixed in 4.5.X
Votes
2
Found in
4.3.2f1
Issue ID
590366
Regression
No
Undo.DestroyObjectImmediate causes data to disappear after relaunch
To reproduce:
1. Open attached project
2. Open scene "Scene"
3. In project view select "BadPrefab"
4. Attach a "Deletable" script to the prefab
5. In Hierarchy, select UnityBug, it should have "My Object" set to the prefab
6. Click on the "Delete" box - it deletes the script on the prefab and toggles itself off
7. Undo the deletion - the script is back
8. Reopen unity - the script is gone and "Component MonoBehaviour could not be loaded when loading game object. Cleaning up!" is printed in console
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
Add comment