I just created a mini game (roll a ball), a main menu and a game over scene. All the scenes tested individually worked just fine. Then I added them to the build settings and the main menu started glitching upon playing. Also even when trying to play the mini game it loaded the main menu. Below is a picture of the odd error occurring where it will saying “is loading” , “not loading” over and over again very rapidly, not seemingly allowing me to interact with any buttons on my scene. Could anyone tell me what is going on? By the way, there is nothing with a DontDestroyOnLoad in my Main Menu scene.
@rh_galaxy, @MSavioti, any thoughts why this problem would happen with the code above?
Try changing the method name of your main scene method to something besides Main(). Main() in C# is the start of any script when not using Unity so it’s possible it might think it’s supposed to run that whether or not you called it.