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
- The Up, Down and other Buttons in a Style Sheet's Inspector unselect items when they are clicked while they are disabled
- Virtual Player remains active and still launches when removed from Additional Editor Instances from a custom Play Mode Scenario
- UI Toolkit Editor Window Creator becomes not interactable and greyed out when a long name is entered
- [Web][iOS] Web Player keeps restarting on launch when Native C/C++ Multithreading is enabled
- "Add Scene to Scenes in Build" pop-up reappears after Scene has already been added and another Multiplayer Editor Instance is loaded
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.