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 ?

Bumping thread, I am experiencing the same issue. Will keep searching for solution and let you know if I find it. :slight_smile:

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.

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.

has anybody come up with a solution? I’m not having any luck trying to fix this