- Home /
None of my scripts are loading
I have the 'associated script can not be loaded, check compiler errors' for all my scripts, although it was working fine yesterday, as far as I am aware I haven't touched anything, so my question is: What?
Should add that there are no actual compiler errors.
UPDATE - My other project on my mem stick works, the scripts in there are fine, just the ones on my comp suck
Okay, I got it working now, not sure what fixed it, after re-importing some things it works, thanks for all the help!!
Answer by _dns_ · May 03, 2014 at 02:30 PM
Hi, maybe it's a cache/generated files problems.
Make a backup of your project directory first!
Close Unity, then try deleting the Library/ScriptAssemblies directory, or the whole /Library directory to force Unity to re-import & rebuild when launching it.
Edit: maybe you lost the .meta files of the /asset directory during a copy or delete. They may be "hidden" files. Unity needs those files.
Okay, I done that, it imported some stuff, but now it says a lot of it is missing, quite a few of my models, scripts and textures have a thing saying missing, the first-person controller can't be found either
I've tried this as well. I still see all of my scripts with the same "associated script can not be loaded."
Answer by bloodyatheist · May 03, 2014 at 01:37 PM
when you start you project at the editor what is happening?
1) unity stucks: then you probably created an infinite loop
2) none of the script are called: make sure they are not called by adding to the start method:
Debug.Log ("i was actually called");
i) if its really not called then your objects and scripts are not linked..
ii) if its called the your logic in the code is flawed and you should recheck it
i hope i helped :)
Thanks for the reply,
$$anonymous$$y code works fine, since it was working literally yesterday, and for the past 6 months, even the build worked fine, nothing seems out of the ordinary on start-up, it just has the yellow box under each script
Your answer
![](https://koobas.hobune.stream/wayback/20220613144143im_/https://answers.unity.com/themes/thub/images/avi.jpg)