Sorry if this has already been posted here… I’m sure it should be, it seems like such a common topic - but I couldn’t find anything on search
Basically, my game generates a lot of random content when it starts a new level. It takes probably about 8 seconds to play the game when you click “play”. Which is fine… But in between the clicking and the playing… My game will just freeze. Completely. Is there no way to just show a “Loading” icon, spinny circle or whatever? Just so the user know it hasn’t bodged his PC
Depending on how you’re generating this content, that might not be what you want either. Hard to say without knowing what’s going on.
If you’re building this content from a script that fires once the level/scene is loaded, then you’ll want to show and update your progress bar from within this function/loop somehow. Either mess around with coroutines or just update a progress GUI every few seconds during the generation code.
At the very least, just blank the screen and write “Loading” on it before you start generating content.