Unity loading

Hey,

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 :frowning:

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 :wink:

Cheers for any help you can offer guys :slight_smile:
Stephen

are you loading content via www ? you can use www.progress to get the status on it.

A broken link and a bad reply lol

I believe you are looking for this little awesome!

Ahh, @killer1390 - that’s brilliant! Thanks! :smile:

However, I’m seeing it requires Unity Pro. So I guess it’ll just have to be something I long for until I’ve collected enough pennies. Ah well. :frowning:

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.

@xomg yeah I have just blanked the screen and left loading on there now. I’ll try and fiddle about with some coroutines too, cheers.

i did not enter a link, the forum thinks it’s a link but i only hinted to some code