When you press play in my game, the game starts instantly. Wich now has become a problem when the map is becoming more and more complex. This is causing a big lag when you press the play button. Therefore I have created a short pause when you press play (changing the execution order of that script to start first), and in that pause I would like the load some gameobjects, or parts of the map into the game. How do I do that? What commands are there to load different parts of the game?
If the game is in another scene from your menu you could use Application.LoadLevelAsync(), unity is going to load in background everything it can.
You might still have a hickup when everything is loaded if you have lots of initialization going on but you could probably split it up over several frames a little if that’s the case.
Thanks for the reply, tried to create a loading scene and it ended up taking alot of time to make it useful enough. I adjusted the graphics settings instead wich worked very well for the moment. But next time I will create loading scene.