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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Add comment