- Home /
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?
Thanks
The class name and file name have to be the same in order for it to work.
They are the same, iv even tried creating a new c# script and it comes up with the same error even if i haven't touched the script...
have you tried this? : https://kodlogs.com/38482/cant-add-script-component-because-the-script-class-cannot-be-found
Answer by unity_9447unni9447 · May 20, 2020 at 04:49 PM
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.
Your answer
Follow this Question
Related Questions
I keep getting this error! 0 Answers
error CS0117: `UnityEngine.Graphics' does not contain a definition for `DrawProceduralIndirectNow' 0 Answers
I have one final error to resolve if anybody knows how to fix this please tell me. 0 Answers
Error : GPGSUpgrader.cs(194,80): warning CS0162: Unreachable code detected 0 Answers