Unity is partially written in C++, with the source code written in C# and C#, respectively. In the realm of gaming engines, the C++ platform is extensively used since it allows for best resource usage and performance.