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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
Not reproducible