All scripts in unity give the error "the associated script can not be loaded please fix any compile errors and assign a vaild script"
all scripts show the error "the associated script can not be loaded please fix any compile errors and assign a vaild script" i have to restart unity for it to work but still if i change anything in any script all of them will crash again it's also show the error MissingReferenceException: The object of type 'Object' has been destroyed but you are still trying to access it. idk even what is it i don't have one single error in my scripts i have unity 5.3.5f and its out of beta but full of bugs any help or i have to change the unity version to older one ?
Take a look in Console, select any one error and you will see multiple lines of error at the bottom of Console window, you will find the file name and line number from which error if co$$anonymous$$g.
all of the error unity built-in scripts you can't open them i said "no single error in my script" because in fact it just show random error but not in $$anonymous$$e its in unity core ui and graphics idk these scripts
and sir if it's in my script it will be in 1 of them not all of scripts at the same time full of bugs
Answer by mwillson · Jul 10, 2016 at 08:02 AM
Bumping thread, I am experiencing the same issue. Will keep searching for solution and let you know if I find it. :)
the only thing i found is restart unity and pray it doesn't happen again when you update some script till some one of unity $$anonymous$$m give attention to these bugs
Not work for me, the isue still there, i tried to make the code into not readed text using "//", and that dont work.
I don´t know what to do, and Im afraid about my proyect
Yeah so far that's the only fix i've got too :/ At least the project's not completely screwed, but it would be nice to have access to the scripts so we can at least see what's going on under the hood... i mean if unity doesnt have the resources to fix something, maybe they should trust their community to do it for them? Works well for Linux, just sayin. :)
Answer by Alexei_Orkus · Mar 04, 2017 at 03:47 PM
stuck with the same problem .....and it doest fix itself .....I had to manually assign all the scripts again..........Maaaan it sucks! has anyone found any solution yet? btw em on version 5.5.0f3 don't know why are they calling it a stable version.
Answer by ZiB_Plays · Sep 19, 2017 at 03:52 PM
Try comment out the entire of the last script you wrote. There may be an error on it which isn't down to the mistyping of code. This just happened to me, I was calling a variable from another script-
Held variable in script1 "static int fubar;"
Called in script2 "script1.fubar =="
Swear this worked fine for days or I just didn't realised that I touched that part of the code (most likely later =p ), then suddenly all scripts gave error "the associated script can not be loaded...". The fix- I missed out "public"! before "static". After typing "public static int fubar;" all scripts were reloaded, phew. Guaranteed to come across this again because of errors like theses. A common one is changing the class name different to the file.cs name. Which is a bit more obvious, only catches you out the first time.
Answer by Streib · Jun 07, 2020 at 02:22 AM
has anybody come up with a solution? I'm not having any luck trying to fix this