Search Issue Tracker


Under Consideration for 2022.3.X



Found in


Issue ID




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

-Forum threads: []
-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 ("") that the consistency checker has pointed them to (converted via the binary2text tool linked in the Importer Consistency docs)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.