Is the core Unity Engine itself written in C++ or C#/Mono-based code?
Answer by AngryAnt
Jan 04, 2010 at 09:59 AM
The Unity runtime is written in C/C++. This runtime is used in any build you create using the editor - for webplayers and plugins it is installed separate from your build, whereas it is included in it for stand-alones and other platforms such as iPhone and Wii.
The editor is built on the Unity runtime and additionally includes editor-specific C/C++ binaries.
Wrapped around the Unity core is a layer which allows for .net access to core functionality. This layer is used for user scripting and for most of the editor UI.
Answer by Lucas Meijer 1
Jan 04, 2010 at 12:00 PM
Unity is written in C++, with the following exceptions:
The editor application's UI is written in C#, using mostly the same API that we expose to game developers. (We have access to a few API's that we don't expose (yet), but not that many)
Answer by duck
Jan 03, 2010 at 09:28 PM
This can definitely be answered in more detail by one of the UT engineers, but as far as I know, it's a mixture of both. Certainly a lot of the core code is in c++, including the physics engine and sound engine, however as far as I understand, much (if not all) of the Editor UI itself, including the terrain engine and its editing tools, is written in c# using Unity's own editor scripting.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users post good questions and use the site effectively we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
Will installing a newer mono version break Unity's mono installation ? (OSX)
Framework Version Selection
Are there any tips for speeding up SQLite through Unity on iOS
When will Unity Support .NET 4 to the current Mono Level?
How can I fix a bug in the mono dlls used by unity ?,