I essentially have one object to act as a boot into the game. In addition, I have objects already placed into my scene. The problem is, for 3 seconds, the screen shows the pre-placed objects in my scene and then the loading screen begins. I don’t want the game to show anything until my loading screen object and its associated texture are completely done. My loading screen by the way is a dynamically created object and I am pulling the texture from an outside directory.
1 Answer
1Let's say you are in Scene1 and you are loading into Scene2. Place your load screen object in Scene1. Call DontDestroyOnLoad on it so that it will stick around even when you change scenes. Display load screen, start loading Scene2, then hide load screen when done loading.
If this is supposed to be for initial loading of the game, then you can make a new scene called StartUp that has nothing in it but this load screen and have this be your start-up scene. All the StartUp scene would do is create the load screen, display it, then load Scene1.
There may be another way to do it, but I know this would work.