Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a 3D game based on unity and I have made it in a way that all menu screens are different scenes, But loading takes time, and that makes it look like the game is lagging upon pressing a button. Is there any way to make the whole game and all scenes load at start-up and just show themselves when called? here's the code I tried:
<pre lang="c#"> if (Application.GetStreamProgressForLevel(1) == 1 && Application.GetStreamProgressForLevel(2) ==1){ Application.LoadLevelAdditive(1);
Application.LoadLevelAdditive(2);
Application.LoadLevel(1);
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900