Why do all of my scripts say "No MonoBehavior scripts in the file, or their names do not match the file name?"
In my project, I had a bunch of C# scripts that were working pretty well. Then, I created one new one, without editing it, and tried to attach it to an object. All of the sudden, every single C# script wouldn't connect to any game object, and above every script it said, "No MonoBehavior scripts in the file, or their names do not match the file name."
I am so frustrated, and have gone to many different threads, looking for how to fix this, but none of their solutions worked for me. What is happening?
Answer by Cynikal · May 31, 2016 at 02:01 AM
This sometimes happens. You can reimport all your scripts, if restarting unity as admin(if windows) doesn't work.
Why does Unity do that? It's SO FRUSTRATING!!
Thank you by the way. I appreciate the help. Sorry for the late response.
Your answer
Follow this Question
Related Questions
"The associated script can not be loaded" & "The script needs to derive from monobehaviour" 1 Answer
can't add script behaviour TMP_SelectionCaret . The script need to derive from MonoBehaviour 4 Answers
Using GetComponent without knowing the script name? 1 Answer
Mob.opponent' is a `field' but a `type' was expected help please! :) 1 Answer
ERROR CS0029: Cannot implicitly convert type `UnityEngine.GameObject' to `TriggerSphere' 1 Answer