- Home /
How I can run start function before showing scene?
I need to load a few things from my server and add them to scene. But when I click from the main scene to another scene where I need to load user info and show them. Now it first show my default text where read something like "searching..." and after less than second it shows username and other information. It looks awful because user cant read what there read first and then it suddenly change texts. How can I update texts and images (profile picture) before it shows scene to the user?
Answer by N00MKRAD · Oct 27, 2017 at 02:07 PM
Make a fade effect?
Yep I think this is the correct answer. How I've done it in the past is by making a UI object that covers the whole screen and is black, then once all loading is complete you can fade out that object. Once it's faded you can destroy it completely so it doesn't continue taking up memory. You obviously want it to be over top of all the other UI elements, otherwise it doesn't work as intended.