"Main" coroutine

Why does the coroutine named “Main” autostart even before Start() method? Is it some kind of undocumented feature - can’t find any reference.

Interesting :slight_smile: . It is undocumented and as such you should not use it.

Main() is the method which will be called when you start a program in windows ( or mac ). It’s the standard method where everything will be started, like the unity engine.
http://msdn.microsoft.com/en-us/library/acy3edy3(v=vs.71).aspx

Maybe because it’s named the same, windows will execute this method also? Wouldn’t make any sense though

And the main method also needs to be static, but even then it doesn’t make sense, because the .net stuff is executed inside of the Unity environment which is implemented in C++, so there is already a Main being executed…