Error : Unloading broken assembly Library/ScriptAssemblies/Assembly-CSharp.dll, this assembly can cause crashes in the runtime
The error pops up after I restart unity every time while trying to work around a different Bug which is any unityengine.GUI related class becomes inaccessible by IDE / Unity.
A quick work around for this is switching .NET version from 2 to 4 in player settings (crashes unity but works after the restart).
Note: this is not limited to my singular project. It happens every time i import a GUI related item onto the project.
Any way to permanently fix this?
-
Uninstall Unity
-
Go to %temp% and temp and delete every files there inside ( Skip if pop up )
-
Download CCleaner and do Analyze Cleaner, Fix Registry
-
Uninstall Unity hub
-
Restart PC
-
Install Fresh Unity hub from unity website
-
Install unity without visual studio / documentation