- Home /
Wait for texture to be loaded before starting game
I support user content (for the background) in my iPhone game and would like to load the content before the game starts. All this is working fine using www.texture. The problem is that on startup the original background (asset texture) is shown for a second until the new texture is loaded (using www.texture with local file).
Any idea how I can keep the game from starting until the user texture is loaded? As far as I can see I must use a coroutine to load the actual texture and at the point where the www request is done the game is running already.
Thanks!
Perhaps use multiple scenes, so one scene it actually loads the texture, next scene is the actual game where you use it?
Thanks for the answer! With your idea I realized that I can simply add a screen quad where I display the splash screen texture and then hide it once the texture is loaded. Works well enough for me. Thanks!