JavaScript Vs C# in Unity


This opinion about C# in Unity is not an idle rumor. In addition to the fact that it is a relatively simple and productive programming language, there is a purely hardware reason. Unity uses the open-source project Mono, which is one of the many implementations of the Microsoft. NET. In fact, all Unity libraries are written in C#.

So you will not be able to use all the features of the platform without knowing C#. But this does not mean that you can not limit yourself to the basic level of the language. On the contrary, the thing that makes Unity engine so great is that there can be several main languages – depending on tasks and developer’s needs. But C# is a must. Fortunately, it’s quite easy to learn and can be applied well beyond Unity.


UnityScript was the second base language of the platform. You can see this by opening the script descriptions, where codes are given in both C# and UnityScript. If you’re familiar and sympathetic with JavaScript syntax – you’ll love working with Unity.

But it’s a mistake to think that UnityScript is the same JavaScript, but with a different name. For example, US supports classes, but you can’t reassign variables or use optional semicolons.

The bad news is that since summer 2017, developers have been aggressively eradicating UnityScript from the platform. This isn’t limited to ending support in the shell – creators of scripting packages are getting warnings to translate all code to C#.

Fortunately, there’s a compiler on GitHub that still lets you work with JavaScript in Unity, and no one is going to close that loophole. But the fun is definitely lost.

Recommended Articles