Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.2.0f1
2019.3.0a1
Issue ID
1173339
Regression
No
Unity Editor does not mark the Asset dirty after cleaning it up
To reproduce:
1. Download attached "BrokenTextPPtrBug.zip" project and open in Unity
2. Select or double click GlacialBasin_GlowFlower_01.prefab
3. Observe that two Errors will be printed in Console:
Broken text PPtr in file(library/unused/4b6f6c19460355849a2491c1f077a73e). Local file identifier (114688089049678880) doesn't exist!
Component could not be loaded when loading game object. Cleaning up!
4. Exit from Unity Editor
5. Open "BrokenTextPPtrBug.zip" project again
6. Select or double click GlacialBasin_GlowFlower_01.prefab
Expected result: Unity should have marked the Prefab dirty after Cleaning it up
Actual result: Previous mentioned Errors appears again
Notes:
- This issue appears on both Windows and macOS
- These Errors stop from appearing when the User explicitly opens the Prefab, which marks it Dirty
Reproduced on Unity 2017.4.0f1, 2017.4.31f1, 2018.3.14f1, 2018.4.5f1, 2019.1.13f1, 2019.2.0f1 and 2019.3.0a11
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
- VFX Graph Memory leak when calling the ClearPropertyBinders and AddRemoveVFXProperty
- Entering "Configure Avatar" inside the Inspector locks it
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
Resolution Note:
Unity will only make assets dirty if there has been a user action.
This is a deliberate design decision, as we don't want users to dirty their entire project when for example upgrading to a newer version of unity.
Additionally importers (in this case the PrefabImporter) are not allowed to change the source files, for similar reasons as the above.