Hello there, thanks for reading this!
I recently lost my project files (SSD got corrupted) but I have many builds lying around so I got this tool for extracting the project files from the build. It worked better than planned and recovered practically the entire Unity project. The asset files weren’t in order, but that’s hardly anything to complain about.
Anyway, getting to the point, once I opened the project for the first time I had to re-install Unity UI for some reason. After that there was a duplicate .dll I had to delete (something related to TextMeshPro, I think). Then, I found this error:
Unity.SourceGenerators\Unity.MonoScriptGenerator.MonoScriptInfoGenerator\AssemblyMonoScriptTypes.generated.cs(5,20): error CS0101: The namespace ‘’ already contains a definition for ‘UnitySourceGeneratedAssemblyMonoScriptTypes_v1’
with a whole bunch of other errors that said pretty much the same thing.
I deleted the offending script (UnitySourceGeneratedAssemblyMonoScriptTypes_v1.cs), but then all my text objects in the scene went blank and said “The associated script cannot be loaded. Please fix any compile errors and assign a valid script.”
The funny thing is that if I delete that text script then there are no errors, but if I keep it then there are.
If anybody could provide an answer to what I should do it would be great.
I’m happy to provide more details if needed.
Thanks!