- Home /
instantiate objects in menu
Hi, How can I instantiated all the prefabs in the project for use in the actual game screen. So I don't have to load them while loading the actual game level..
Thanks
Answer by Peter G · Jul 12, 2010 at 11:43 AM
The easiest way to save the objects would be to use Application.DontDestroyOnLoad()
. I'm not sure if it would really make it any faster though. You might have to do some benchmark tests to find out. But if you just want to cut loading times, use Application.LoadLevelAsync()
as soon as your menu screen loads, then while the user is flipping through the menus, the level will be loading in the background. Then you can just load the level when the user hits start.
LoadlevelAsync seems to load the big level faster but any way to make the faster loading time in Unity Iphone Basic?
Since Iphone can't use async, there really aren't any ways to cut down on loading times except good design. Compress your audio, use smaller textures, all that stuff. Otherwise, the wait feels faster if you have a loading screen so that might be all you can do.