PLEASE HELP ME! The associated script can not be loaded.

Hi!

I am sort of a unity noob still, so the answer to this question might be obvious to you. But please help me anyways.

I am panicking as my project has basically collapsed. On every single gameobject with a script, the error
message: “The associated script can not be loaded. Please fix any compile errors and assign a valid script” shows. The only thing is that I don’t have any problems in my script (at least no error messages) and the scripts are assigned. I’ve tried to delete all of the scripts in the project and reimporting them again, but the same problem occurs.

What should I do?

Did you try saving the project and then closing unity and opening it again? I once had glitches and when I restarted unity everything started to work again. If you updated your unity application, your scripts may be outdated and needs to be refitted to the current version. If this doesn’t work, please look at the link here:
1

I had the same problem and followed the advice in the answer above. Now when I re-open the project my assets folder is empty, it says ‘Missing Prefab’ all across the Hierarchy list! At the bottom of the window it says “Extension was not registered, that means it relies on default UnityExtensions settings, please register…” (not there are two spaces between “Extension” and “was not”.

Hi, i faced the same problem as well when i reinstall my Unity to latest version. How should i activate Vuforia again?

Please help

I am having a similar issue. Not only do I get the same “the associated script cannot be loaded” message, but my MonoDevelop gives me an “assembly error” message. Are these related?

I had the same issue too but it turned out that I had the wrong class name in one of the files. In any script that is showing you this error, open it up and read it carefully, from top to bottom. Trust me, it’s very easy to glance over a script and not pick up on any mistakes (especially having the wrong name for class scripts)