I come here with despair. For some days I have this error on all my scripts:
“no monobehaviour scripts in the file or their names do not match the file name”
While everything was working fine. Now no script works anymore. I made “reimport all” change the 2018-> 2019 version. In short, I am desperate. I know this error has happened before. But I can’t find any solution. Please help me. Thanks everyone.
the file name is exactly the same all my script but i have the error for every script : i have 4 errors in my compil but they are old and i don’t change nothing in this script… bouhhhhh
Okay, I can’t read your mind (I tried, I promise…). If you want help, copy the entire error message(s) here, write down the file names and at least partial code inside of them, but prefer the whole. And use code tags.
Two of the errors say it couldn’t find the namespace “Die”. Where is that defined? The other two errors may be downstream from the missing “Die” namespace problem.
I would start with removing all non-english characters from filenames and class names. Rotationdé → Rotationde
Second: hit the clear button in the console, so you get a clean slate and then check the errors. If the errors stay, then you have those files and the error is in there. If the “no monobehaviour scripts in the file or their names do not match the file name” message stays, it probably product of these errors, there are situations when the compiler can’t compile files because of errors.
Nope. Where is your Die.cs file and Die class? It says it cannot find it.
YESSSSSSSSSSSSSS. Thanxs. I think i am stupid. But now i know that if there is a problem for all scrpit it is not the real problem. the problem wa under my eyes. So if someone as the same probleme look at your error juste your error. You resolve it and after all your script are available.
Txs. Now i have an other probleme but i try to solve it. probleme about
“com.unity.2d.sprite”: “1.0.0”,
“com.unity.2d.tilemap”: “1.0.0”,
not found.
I must look in package manager. But in unity 2018 not found form the moment.