All scripts in unity have stopped working

With every script in my unity project is added to a game object the error comes up “can’t add script component because the script class cannot be found.” Iv tried to reimport all my assets and it didn’t do anything. I’v also tried to create a new c# script and then try and add that to a game object and the same error comes up… any suggestions?


make sure you named all the scrips correctly. That is your class name and your class name should match to add your script a game object.