Can anyone tell me how it’s done please?
Seems that all graphics freeze when a scene loads. But it’s easy to have transition music run in a Do-Not-Destroy object. At least the sound will continue this way.
You can do using the Async Level Load:
thanks sorted it now, works fine. ![]()
to be clear the Async is pro only, sucks for us basic guys. I have yet to figure out any way to get around that without the async. Best I can do is to have a “loading” message or some sort of info graphic display just before loading the new scene, so that is what the user sees instead of a frozen screen.
So AsyncLevelLoad is working? The last time I tried it AsyncOperation.progress retuned 0 and then 1 when it was done - never anything in between. I put in a bug report and I don’t think it has been marked as fixed but I’ll have to go back and check.
Yeah, just multiply it by 100 as it does some floating point round off, then in my case I divided it by 100 again for my NGUI progress bar.
Good to know - thanks for the link!
I do the same. I show a loading screen with just a “Loading” text. What I do to keep the user from thinking the app is crashed is playing some background music. E.g. if you have a main menu, just add some music and make sure it is not destroyed (use DontDestroyOnLoad) while loading.
So the user can tell there is still something going on.
AsyncLevelLoad always has (and still) just gives me either 0 or 1.
Yes it does. Multiply it by 100 and it works properly.
Hi there,
I cannot figure out the code for JS, I too will be using NGUI for the progress bar any chance I can get a sample code?
Thanks.