Search Issue Tracker
Not Reproducible
Votes
10
Found in
2022.3.10f1
Issue ID
UUM-58312
Regression
No
On Script import/reimport MonoImporter does not generate consistent results due to updating Custom packages
Steps to reproduce:
1. Due to the complexity and size of the project local reproduction is not possible
Expected results: MonoImporter generates consistent results
Actual results: MonoImporter does not generate consistent results
Reproducible according to the user: 2022.3.10f1, 2022.3.13f1
Could not test on 2021.3.32f1, 2022.3.15f1, 2023.2.2f1, 2023.3.0a17 due to missing project
Notes:
-Forum threads: [https://forum.unity.com/threads/package-manager-behavior-change-in-unity-2023-2-0.1518538/#post-9501832]
-[https://forum.unity.com/threads/cache-error-when-upgrading-packages-results-in-invalid-scripts-which-then-causes-asset-corruption.1516361/]
-The issue is present in custom packages and whenever they are updated, the scripts inside the custom packages break on import
-The scripts get imported without classname and assemblyname, but with some type and hide flags set. On reimport, they lose those types and flags, but get the classname and assemblyname back
-The broken scripts can be fixed by right-clicking on the affected scripts and selecting reimport, but the MonoImporter will give a warning that it generated an inconsistent result for the asset AND most will be broken again the next time unity is opened.
-The only way to fix this problem for a while is to delete the entire Library Folder and let unity reimport everything
-The user has included some of the generated artifacts ("Artifacts.zip") that the consistency checker has pointed them to (converted via the binary2text tool linked in the Importer Consistency docs)
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note:
Not reproducible