- Home /
How to learn programming for Unity?
I have NO prior knowledge in programming of any sort so here are some questions:
- What language should I choose (If C# should I learn C++ first)?
- Where could I get a book/tutorials for that language?
- Do I need to know specific Unity programming to make a proper game?
Thanks in Advance.
Answer by Mike 3 · Jan 02, 2011 at 09:48 AM
1) Pick either c# or javascript. c# is a little harder to learn at first, but you get the benefit of tutorials on how to use it, javascript is a unity specific language with no real language documentation. If you pick c#, don't pick c++, they're not really that related besides the c in the name
2) Most bookshops with technical sections will probably have c# books, otherwise amazon and the like definitely does. For tutorials, they're everywhere, google is generally your friend there (Type in c# tutorial and you'll get a bazillion links).
3) http://unity3d.com/support/documentation/ScriptReference/ is a good reference for classes and functions you'll want to use
This is an old question, but it's important to prevent the proliferation of misconceptions.
First of all, JavaScript is not Unity-specific but rather a client-side scripting language for web pages. Also, Unity's concept of JavaScript may not conform with standard JavaScript as some have pointed out. I have not been able to confirm this, however, as Unity's own documentation is very lacking. Note that Boo, the third language supported by Unity, is not Unity-specific either.
Second, C# and C++ are related by their mutual syntactic heritage from C, after which they are named. Furthermore, all three of these languages are imperative, and both C# and C++ are heavily object-oriented.
To answer the original parenthetical question, no, you do not need to learn C++ before learning C#. However, since C# as $$anonymous$$ike rightly points out is a fairly complicated language to learn (compared to JavaScript/UnityScript), you may want to learn the basics of coding elsewhere before moving into Unity scripting. Perhaps Processing or Greenfoot would be of interest here.
Answer by YoshieMaster · Jan 02, 2011 at 09:45 AM
I find JavaScript simplest but this is just a personal preference. For documentation check out http://unity3d.com/support/documentation/
You will need to learn Unity specific commands and identifiers. These are all in the documentation.
Answer by Meltdown · Jan 02, 2011 at 02:31 PM
I found these tutorials at http://www.unity3dstudent.com/ to be the best. They all video tutorials and they go quite a bit into scripting with simple line by line examples.
I would go for C# as a language.
Answer by gamedevtraining · May 06, 2011 at 02:40 PM
Our own shameless plug here...
If you are interested in game development, you might also be interested in our online 4-day course on Game Development with Unity: http://gamedevtraining.zymichost.com
Its interactive so you can ask questions from the instructor, and share your screen live. Its only over weekends, and since we are doing this live for the first time ( we usually do in-person), its very affordable.
To register, email: gamedevtraining@gmail.com
Your answer
Follow this Question
Related Questions
How do you write scripts??? 4 Answers
Where can I get more help using Unity? 9 Answers
Where can you find a in depth tutorial for learning UnityScript? 3 Answers
Scripting Complications 5 Answers