3 ms·
Unity is the most popular engine for video games right now, and uses C#.
by remram 5y ago
Unity is the most popular engine for video games right now, and uses C#.
- SXX 5y agoPlease dont confuse gameplay code with the game engine itself. Unity runtime was always written in C++ even though for games and editor they use C#.
- invokestatic 5y agoUses C# for its scripting API, but crucially the engine itself is written in C++.
- dagmx 5y agoUnity uses C# for a certain layer but the engine itself isn't C#. They also do some work for ammortized multi frame GC. That said, there's tons of games written in less than optimal languages for major portions of the game, like Naughty Dog games in the PS1/PS2 era used a lisp based language for a lot of things
- Mikeb85 5y agoIt doesn't. It's a C++ engine with C# scripting (and if you remember, used to also have UnityScript aka. JS scripting).
- Agentlien 5y agoApart from what others have pointed out about Unity's engine code being C++ it also comes with support for IL2CPP which compiles the code to cpp which can be optimised. We've used this on all Unity projects I've been part of and it really makes a difference in performance.