I’m trying to understand how Unity compilation works, and how this differs from Flash, which also seems to be cross-platform-able via a virtual player/machine.
There is very sparse info in http://docs.unity3d.com/Documentation/ScriptReference/index.Script_compilation_28Advanced29.html … so the order I am guessing may not be accurate:
Is this the order that Unity compiles:
-
Upon saving script from MonoDevelop/VS/UniSCiTE, switch to IDE, Unity compiles Unity JS/C#/Boo to .NET dll.
-
Upon building the project, it is packaged into a virtual machine for each platform, where the .dll are JIT-compiled at runtime EXCEPT for iOS, where an AOT process happens when the project is built in XCode?