- Home /
make a loading screen
How can I make the loading screen in Unity Basic as it doesn't support loading another level in background and it might take a while to load a new big level.. All I want is that I want to show a static loading screen before the actual loading of the main game play scene. Can you provide me with the example source code of how did you achieve?
Answer by Hibame · Oct 14, 2010 at 10:56 AM
What could be done is to have a scene with a texture covering the entire screen with some loading text on it and load everything then when the scene loads. In the scene you can have a random object with the loading script on it. This script on start goes though and creates everything that needs to be there for the game. All of the objects that are created are of course set to Object.DontDestroyOnLoad so that they stay to the next scene. An added bonus to this is that you can even use Unity's hierarchy and inspector to create objects as long as they contain a script that runs Object.DontDestroyOnLoad.
For that you can add stuff such as text that says what you are loading and maybe a progress bar to help with a wait. If you needed to say go out and fetch data from an external source asynchronously. You can just spin the loading scripts update until all external data times out or is revived and then tell it to go to the first game scene.
Your answer
Follow this Question
Related Questions
Double scene loading instead of one. 0 Answers
Adding commands to buttons? 1 Answer
Scene Loading Very Slow - Sometimes 1 Answer
Prevent Object From Loading 2 Answers