Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

Heavy scene working fine in editor but not in build.,Game works well on editor but doesn't start (freezes) on built .exe

$
0
0
I'm making a small game and I'm at stage 0, which means I'm coding the foundations of the game, disregarding any optimization, menus, etc. When I hit play in the editor, the scene I'm working on will take 10-20 seconds to load, which is to be expected because I'm loading and generating a shit ton of stuff, no problem here. The problem came when I tried to build the game to test it in build mode. I choose this heavy scene as the only scene and the game will just freeze. If I make the scene loading lighter (taking 1-2 seconds instead), it will load in build mode with no problem – but if I leave it as it is in the editor, it will just freeze. I've tried both IL2CPP (which is what I indend to use) and mono to no avail.,So I'm making a little game in Unity. I'm at stage 0, where I'm just programming the "base" without any menu, loading bar, or nothing. The scene I'm working with will take 10-20 seconds to load in the editor, which is to be expected because I'm loading and generating a shit ton of stuff up front as soon as I press play. So today I decided to build the game, just to see how it looks as a standalone application and to catch any potential problem I may have in the build. I put the scene as the first and only scene of the project, and compiled to both IL2CPP and Mono, to no avail. I also tried to put a scene with a button that loads the heavy scene and pressing the button will likewise freeze the game.

Viewing all articles
Browse latest Browse all 4084

Trending Articles