- Home /
Unity skips when spawning Prefabs
Does anyone know why Unity skips a few frames when it loads certain prefabs? The Prefabs in question are models I made myself ranging from 189Kb to 245kb.
Answer by jashan · Aug 03, 2010 at 06:54 AM
On first instantiation of prefabs it takes a moment to load those which can result in a little hiccup. One solution is to have those prefabs as part of the scene already (in some hidden place). That will likely make the scene loading take a little longer but that's usually less noticeable than the hiccup when loading the prefab.
Another possibility is splitting up the prefab in smaller parts or using smaller (less complex) models.
I kinda figured it out, it was due to the scaling. I had to scale them in 3ds max ins$$anonymous$$d of by Unity. At least it's working for now. Thanks for the suggestions though, they got me thinking.
Answer by qJake · Aug 03, 2010 at 06:58 AM
This is a bit of a stretch, and it requires Unity Pro, but you could stick your prefab in another, empty scene and load it with Application.LoadLevelAdditiveAsync. This shouldn't cause any lag at all.
But someone else who is reading this answer might. Answers are for everyone, not just the asker. :P
LoadLevelAdditiveAsync does not fix this problem. AFAI$$anonymous$$ the hitch when it loads is a problem for LoadLevelAdditiveAsync as well. Jashan's answer is correct.
Your answer
![](https://koobas.hobune.stream/wayback/20220613070315im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Cannot Edit Blender Model Prefab in Unity 1 Answer
A node in a childnode? 1 Answer
How to animate inside Unity? (Blender animation is finished) 1 Answer
Rotate object 1 Answer