I’m new using Unity, so I need your help. I’m using Personal Unity software.
I followed all “Roll a Ball” tutorial and I did everything like it says and the game is working perfect, but when I try to build it for Windows, it shows 9 errors. See below the printscreen of the erros.
At the risk of being flamed for pointing out the painfully obvious, did you type in the code for the scripts exactly as shown on the tutorial? If there’s errors in the code it’ll not work.
Hmm, your script looks correct to me. It sounds like your installation of Unity does not have the Windows build target properly installed. I’d run the installer again, and be sure you’ve selected Windows builds as one of the components to install.
Fairly new to Unity myself (but not to coding), but I think the consensus is that the errors you are getting are spurious. I had some trouble with Visual Studio and Unity initially, but it was fixed by restarting.
If you haven’t done alot, I suggest trying a new project and copying over the assets (but not the meta files, etc), at the very least this would ensure you are getting a fresh build (there is surely other ways to do so, but I’m guessing you don’t have enough content to worry about finding a sharper solution)
That is another question that I have. When I started using Unity, it was opening Visual Studio to script, because the tutorial doesn’t use Visual Studio, I deleted it and stat using the other program. Is there any difference between visiual studio and the orther program? Which one do you think is better?
I choose to use Visual Studio because it’s something I already had installed and happens to be my preferred IDE generally. This also means I can’t comment on how it compares to MonoDevelop as I haven’t tried/considered it personally. I’d probably expect they are both reasonable options.
I really don’t know (and to that extent I wouldn’t rule it out, but this does not mean I think it’s necessarily likely either) sorry.
My guess would be that Unity uses the IDE for edtting and debugging and builds the target using it’s own copy of the Mono compiler/build system. Perhaps I’d concede that it may (no idea how likely) be a possibility that installing MonoDevelop after Unity might have changed a config somewhere? Possibly the Editor log as described here: https://docs.unity3d.com/Manual/LogFiles.html might contain more info about the build process? (if you post your copy of the log to this or another forum for specific support, and if the latter please consider a thread title that suggests build issues, please be sure to remove personal info - looking through my copy I see stuff like my email address and Windows Username)