- Home /
Question by
yellowyears · Apr 30, 2020 at 09:05 PM ·
c#errorcompiler error
Can't add script to gameobject even though there are no compiler errors in the script and the class name matches the script name
I'm not sure but I think it could be because of an error in another script? FWIW I can't play my game
Comment
Answer by Jasr_88 · May 01, 2020 at 08:59 AM
Are you sure that your class derives from MonoBehaviour?
Yes, but it doesn't matter anymore it turns out that there was a compiler error in another script and that stopped me from using the script? idk
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Error Code CS0118 or CS0120 1 Answer
Distribute terrain in zones 3 Answers