- Home /
Question by
triangle4studios · Mar 30, 2021 at 06:50 AM ·
monobehaviourdelegatesmain
Main Delegate Is Called By Monobehavior?
I used void Main()
as a method, and was having a bug. It was running on its own. Renaming it stopped this. I was wondering if anyone could produce some documentation supporting where unity explains the purpose of this function. I was under the impression main was not a protected word in unity even though we use C#. Also, even if it were, it is Title Case unlike the core method in c#, so it shouldn't be initializing as far as I have knowledge.
FYI its acting like the start method, if anyone is curious.
Thanks for any input.
Comment
Answer by Terraya · Mar 30, 2021 at 07:10 AM
Up from the version 2020.x its disabled, it was not documented by Unity so i assume it was kind of a sneaky "bug"
Your answer
![](https://koobas.hobune.stream/wayback/20220613031509im_/https://answers.unity.com/themes/thub/images/avi.jpg)