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
- Mouse input is registered incorrectly in Custom RP when downscaling Render Target and rendering Overlay UI before final upscale
- Time.deltaTime is locked to the display's refresh rate when the built Player is moved to a Secondary Display and Windowed Mode is used
- Crash on RaiseException when importing a specific asset
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
Add comment