You could also store the asyncload.progress in a variable and use Mathf to clamp it between 0 and 1, like float progress = Mathf.Clamp01(asyncload.progress / .9f); That way you can just leave the slider value at 1
A small "improvement" (depending on how many objects your loading screen has): foreach ( Transform child in transform ) child.gameObject.SetActive(false);
It didn't work properly for me. The next scene loads and activates, but in the Hierarchy it continues loading. It keeps the active "nextScene" and a loading "nextScene" so unity does not load another scene to load. When I remove the "press any key" part and "nextScene" is activated just after loading is complete, it works fine.
Can you update this video for 2022 and have it where you press the play button that's in the main menu
You could also store the asyncload.progress in a variable and use Mathf to clamp it between 0 and 1, like
float progress = Mathf.Clamp01(asyncload.progress / .9f); That way you can just leave the slider value at 1
I'm a simple man, I see gamesplusjames, I give a thumbs up then watch
Very smart stuff :D
I love watching these just to get a better understanding of code. Great tutorials!
Please make admob integration in my unity 2d games best ❤ good luck
A small "improvement" (depending on how many objects your loading screen has):
foreach ( Transform child in transform ) child.gameObject.SetActive(false);
That would work nicely, especially if you start adding more elements :)
Always a huge help! Thanks a lot sir!
Thanks for the tutorial
It'd be super useful getting this tutorial for hdrp :)
Great video
How can I have a loading screen appear as soon as my game application launches?
Just assign that loading scene first than the other.
It didn't work properly for me. The next scene loads and activates, but in the Hierarchy it continues loading. It keeps the active "nextScene" and a loading "nextScene" so unity does not load another scene to load. When I remove the "press any key" part and "nextScene" is activated just after loading is complete, it works fine.
Thanks
Thanks
Boomer.
GamesPlusBoomer
@@gamesplusjames
Goomer
Game developer
Goomer.
nice
Now show me how to load my debit card
I think I'm second probably not