What language does one need to use when programming with Unity? Or is it an API for many languages?
I read through the docs and I guess I missed the point on the language used.
It says it has iOS deployment, would this still allow the programmer to code in objective C?
Is Unity an sdk which can be used for many platforms or how does it work? It mentions deploy the same code on multiple platforms.
Unity is written in C++ but uses Mono (aka C#, UnityScript, Boo) for scripting. and also is estimated to be much more performance- wise in comparison to other languages.
Both Unity and UnrealEngine utilize C++ in their source code: Unity is partially written using C++ and C#, whereas Unreal Engine is written in C++ entirely. C++ is widely used to develop high-tier game engines and critical service applications where optimal resource utilization and performance are a priority.
All development is done using your choice of C#, Boo, or a dialect of JavaScript.
Most of the example code in the documentation is in JavaScript; if you poke around the official forums and wiki you'll see a pretty even mix of C# and Javascript. Very few people seem to use Boo, but it's just as good; pick the language you already know or are the happiest learning.
Unity takes your C#/JS/Boo code and compiles it to run on iOS, Android, PC, Mac, XBox, PS3, Wii, or web plugin. Depending on the platform that might end up being Objective C or something else, but that's completely transparent to you. There's really no benefit to knowing Objective C; you can't program in it.
Update 2019/31/01
Starting from Unity 2017.2 "UnityScript" (Unity's version of JavaScript, but not identical to) took its first step towards complete deprecation by removing the option to add a "JavaScript" file from the UI. Though JS files could still be used, support for it will completely be dropped in later versions.
This also means that Boo will become unusable as its compiler is actually built as a layer on top of UnityScript and will thus be removed as well.
This means that in the future only C# will have native support.
unity has released a full article on the deprecation of UnityScript and Boo back in August 2017.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With