How to fix Compiler errors?

I started a new project not too long ago and I am new to game developing. So I soon ran into some kinks in the project, it started with the GUI, apparently it was beginning to render something while not finishing rendering something else. I would press play and everything that I put into that game will be gone with a exception of a singletree. I then began importing new assets into the game from the asset store. I put some bushes and weeds into the game and when I press play I couldn’t play it. It says “Fix all compiler errors before play” I don’t know what to do any help would be greatly appreciated.

Welcome to the forum!

You need to get rid of all those compiler issues. In the console view, you find a detailed explanation of what is causing the issue. If you don’t know how to resolve it, post your script here, together with the error message. Important: Always pick the first error message! And if you post code, use code tags:
http://forum.unity3d.com/threads/143875-Using-code-tags-properly

I did a system restore, figured it would work. (I probably look stupid now but yet again I am not much of a computer guy) and started a new project in the hopes of avoiding the GUI problem. Well the GUI problem did not appear on the console, I only pressed play when starting the project but I still have to fix all compiler issues. " Assets/Locomotion System Files/Locomotion System/HeadLookController.cs(10,14): error CS0101: The namespace global::' already contains a definition for HeadLookController’ " this is what the console message have told me and I still do not know what its telling me the problem. As for the script I haven’t use a script in the new project, I only pressed play to see what it would do. D0 you still need a script? and if so what kind of script? and how do I do that?

Which packages are you using? And where did you get them from. I assume this one:

What else?

Yeah I am using that package as well as nature imports, bushes and flowers, 3d model character, and others. Yes I have got that from the asset store

Actually I found the solution already The asset that I had “Game analytics” and the “Locomotive head controller” were the problem. So I deleted them figuring it would perhaps clear the compiler error in the process and it works! Now if I have a compiler issue all I got to do now is to delete the damn thing and it will all be fine. I am sorry to waste your time, I really do I just didn’t know something complicated like that could be fixed with a simple delete button. But I thank you for trying to help me.

I highly recommend figuring out why you had a problem when you run into one, even if you’re able to solve it by trial and error. The productive Unity developer will have to fix compiler errors tens or hundreds of times per day. Knowing the nature of various console errors, especially common ones like this, is not just useful, but required to make games in Unity. It’s the first rung of an infinite ladder, and you can’t skip it, not if you want to get anywhere.

1 Like

hi I’m also new at unity and I can’t fix the compiler errors on this code, can somebody help me

3217951–246534–AccelerometerInput.cs (976 Bytes)

Im new at unity, and the errors re terrible at fixing. I just wanna add movement to the capsule

I know you’re new but please read the forum rules before commenting. This thread is 7 years old and you’re not adding anything helpful to the conversation. Both things are against the rules. If you’re having trouble please post a new thread in the getting started section, with a descriptive title and all the information you think can help others understand your problem.

As @JoNax97 observes above, please STOP replying to a 7-year-old thread.

Instead, start your own thread with a good subject line… It’s FREE!

Here is how to report problems productively in the Unity3D forums:

http://plbm.com/?p=220

If you post a code snippet, please use code tags: Using code tags properly

1 Like