- Home /
Monobehaviour error with this associated file canot be loaded error. Any help is appreciated.,MonoDevelop and the associated scripts can
Hello Devs and Helpers. I recently started using Unity and i have been met with a no MonoBehavior scripts in the file, or their names do not match their file name. This first occurred when i was learning how to roll a ball with your lessons. This really turned me off, after 5 days of trying to ignore it, i just couldn't take it anymore because i think it leads to the script also saying "This associated script can not be opened". This doesn't load the script on to the object so anything i did was useless. I tried checking if the filename and script name were same, sadly that didn't work. I deleted all the asset's meta files, didn't work. Finally, i came to conclusion that i should try if the same occurs to a new project. The same error occurs, i try to change my script editor from Visual Studio to MonoDevelop which should have been built-in however i couldn't find it in edit>Preferences>External Programs. Please help, game developing is a booming career, i really want to improve my skills. How could i get rid of these errors.,Hello Devs and Helpers. I recently started using Unity and i have been met with a no Mono Behavior scripts in the file, or their names do not match their file name. This first occurred when i was learning how to roll a ball with your lessons. This really turned me off, after 5 days of trying to ignore it, i just couldn't take it anymore because i think it leads to the script also saying "This associated script can not be opened". This doesn't load the script on to the object so anything i did was useless. I tried checking if the filename and script name were same, sadly that didn't work. I deleted all the asset's meta files, didn't work. Finally, i came to conclusion that i should try if the same occurs to a new project. The same error occurs, i try to change my script editor from Visual Studio to MonoDevelop which should have been built-in however i couldn't find it in edit>Preferences>External Programs. Please help, game developing is a booming career, i really want to improve my skills. How could i get rid of these errors. Thanks in advance.
Answer by Momcat · Aug 30, 2018 at 02:16 PM
I'm kind of new too but I've noticed that that error message comes up for a lot of different errors and they don't always have to do with the Monobehavior at all.
Could you give more details of exactly when that error pops up? For example, if you start a new project, and create, say, a cube (if it's a 3d game), then create a new script in the Project window, and then drag the new script onto your cube in the hierarchy, do you still get that error?
Answer by brotherhood79 · Aug 31, 2018 at 07:13 AM
@Momcat Today I checked, it has mysteriously disappeared. They asked me for an update, so now the Unity assistant installer is installing the update. Will inform you if this occurs after the update. @Juzper Already tried this and this wasn't the case. This problem disappeared today. Will inform you if this occurs again. Thanks you both of you. Problem might come back to haunt me and other users.
Issue resolved! I think I have found why the error occurred. Every time Unity asks me to update the editor it creates a new icon on my desktop. It turns out I had been using the older editor icon 's. Today, after yesterday's update was done I opened the latest editor and tada!!! It worked. All errors have disappeared. HUZAAA! Thanks guys. Hope this is the solution for others.