- Home /
load scene without lag
What is the best way to load object into current scene without lag? I try to use LoadLevelAdditive, but when I load a new scene the current scene stop until the new scene is load. If I try with prefabs?
Answer by Tim-Michels · Jun 25, 2012 at 02:51 PM
You can use LoadLevelAdditiveAsync, but you need to own a Pro license.
Edit
LoadLevelAdditiveAsync loads a new level on another thread, but when you only need to load single objects, I would suggest instantiating prefabs.
You can simple put in your code:
C# example
GameObject newCube = GameObject.Instantiate(cubePrefab) as GameObject;
I try with LoadLevelAdditiveAsync but I have also lag when scene load. I'm wrong something?
Can you tell me what kind of objects you need to load additive. Does your scene you're loading additive contain lots of objects? I really should know more information to give you the best answer...
I have a big scene where there are texts that move. For each text is associated (with a click of the mouse) to load another scene containing various images (planes with texture). Each scene contains around 70 images (planes with texture). When the scene is loaded only the first immagne is active, the others are successively loaded and only one at a time. The images do not appear to be disabled. when you leave the image gallery scene is destroyed.
I noticed that when I start the scene I only slow the first time I load the scene, the successive times the load is instantaneous. Thanks for the attention.
I tried running the app on the iPad and seems to work. It occurs to me that the problem there is lag when you run the app on the editor. Thanks again for your attention.
Your answer
![](https://koobas.hobune.stream/wayback/20220613073245im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
allowSceneActivation give me error message 0 Answers
heavy scene loading 1 Answer
My button won't load a scene 1 Answer
Load another Scene after collecting 6 coins 1 Answer
Save & Load Game question 3 Answers