- Home /
compiler problem
Before everybody freaks out and says that i just need to go into the console, let me explain. I am working on a short game. I made one bit of java code. There was something wrong with it and it wouldn't compile so I decided to delete it and start over since I couldn't find the problem. Before I had typed the code and deleted it, the game I had done so far had played fine. However after deleting the code on a whim I decided to try and run it again. All the sudden though it said that it couldn't run until all the compiler problems were fixed. But there isn't any code to fix!!!! There isn't currently a single line of code in my game, yet it says it has compiler problems that need fixed... Does anyone know what to do or this just a bug and I have to start over?
What is the compiler error you are receiving? Did you delete the text from the file or did you delete the whole file? Unity does not like script files that are completely empty.
did you try double-clicking on the error? that should take you to the concerned script/file.
Also posting the actual error text would be helpful :)
As OmarAlhaddad said post the actual error that your are receiving that would be really helpful in identifying the problem.
Answer by ICHeeryI · Feb 15, 2013 at 12:49 PM
You must save when you edit text. And like robertbu said unity doesn't like empty scripts(better delete script or just type in function update(){}
), and you should post compiler error next time.
Your answer
![](https://koobas.hobune.stream/wayback/20220613092726im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help with Enemy Spawner! 1 Answer
Basic C# Public Variable Help 3 Answers
Weird compiler error code 1 Answer
How do you script in Java? Anyone have some exaple codes I could use? 0 Answers