Hey All, Very new to Unity. Maya, Cinama4D, everything 3d, I'm a pro. But scripting I suck. Programming? I wont even go there. That being said, I'm trying to make a very simple car game for iPhone. I'm using the NumberRacer project as a template. Using the scripts basically. So, I import all of my scene data from Maya. Cool. No problem. Then I try and attach a script and I get "Can't add script behaviour JCar. You need to fix all compile errors in all scripts first!" I seriously have no idea what to do here! Any suggestions? Thanks!
What script are you trying to attach? Unity inspects all your scripts before you add them and again every time you make a change to them to ensure that you haven't made a mistake.
There is likely a bug in the script that is upsetting Unity.
A simple way to test this would be to comment out as much unnecessary code as possible. If you post your script, I'm sure someone could help you find the bug.
This happens when monodevlop cant compile the code before adding a new script in the build, this happens to me a lot of time and I realize that if your code in your scripts ( not the new one but those already added) contain unacceptable error. As the message says, just correct the faulty code using the console to see wich part are to be corrected and then, the script (the one you want to add) will add itself as soon as monodevlop is satisfied with the rest of your code.