I know that is problem is on many other threads but i could not find an answer.
Every time i make a new script and attach it to the players gameobject, it comes up with the error “The script don’t inherit a native class that can manage a script.” It even happens when i have just created the script.
I have tried:
Starting a new project
Deleting the scripts and re-writing them
Hi so I tried starting a new project and everything seemed to work fine but then it happened again after about 5-10 minutes. Should I change to another unity version? I am currently on the latest 2020 version
Assuming you were doing stuff in the editor during that 5-10 minutes, then it’s probably related to something you did in that time. Try to remember everything you did from the last time you know your scripts worked until the first time you know they didn’t. See if you can undo those things and make them work again. If you can’t get your scripts to work again, start another new project and do stuff again, but check for this error as often as you can so that you know exactly when things go wrong and can figure out what you did right before that.
l will try removing the namespace and creating a new project. If that doesnt work i will try and delete unity and restart. Oh yeah btw during those 5-10 mins i was just writing the script
So after you wrote that one particular script, all scripts in your project stopped working? If you delete that script from your project (you can save a copy elsewhere on your computer if you want), then do other scripts work again?
I went back into my ctrl+z and found I accidentally moved the MonoBehaviour script from it’s home. Not saying that’ll work for you but it fixed my “The script don’t inherit a native class that can manage a script” problem
If you are still having a problem, I imagine not, it’s been six days. But I just had the same thing happen and it was because I had an extra space in the .cs script name that wasn’t in the actual code.
Guys, it’s definitly a bug from Unity 2020. I’m using 2020.2.1f1 and I’m getting this all the time.
I have fixed this one time when I noticed the script name was different from the class name.
Right now I was trying to drop a brand new script to an existing game object in my scene and I was getting this error.
Later I found out that one of my other scripts was having a compile error, I just fixed this and I could drop the script to meu object. This is like… WTF? Non-sense error…
hello, it’s my first day in unity and I am on my first project, I am having the same problem, so I tried making a new script without writing anything in it I dragged it to the player and the same message came again anyway does anyone know how to fix it in my case? thank you