- Home /
Prefabs made in Unity are insanely slow, and don't show textures.
I have been creating a level for a game, and when it came time for me to export it, I put all of the objects in a game empty, then dragged the game empty into my prefabs folder. Then I tested it by dragging the prefab(the game empty) back onto my scene and ran into problems. The prefab took a long time to load and while it was loading the individual objects looked very weird. Eventually it stopped loading and all of the objects where textured as dirt (my default texture). I also noticed that my console had a whole lot of notifications saying something like:
Shader wants normals, but the mesh pb_Mesh-3498 doesn't have them UnityEditor.DockArea:OnGUI()
It added up to 30 copies of 660 notifications, each with a different number after the "pb_Mech-".
I also have had problems with trying to retexture some of the individual objects.
What am I doing wrong and is there an easy way to fix this problem? Is there a way for me to convert a level into a package that I can send to someone without having this problem?
Update: After 2 weeks I still haven't fixed this problem. Anyone have any ideas? I really need to fix this.
The problem is, that your models need normals. You can generate the normals through the import settings.
Could you please explain with a bit more details? I'm very new at this. I do know that all of the objects behaved normally until I tried to make a prefab though.
If the purpose is just to send the scene with all its elements, then you can just right click the scene in your Project view and select export and make sure you include all dependencies
The purpose is to create a prefab, then to export it. The problem isn't the exporting part, but the prefab. As I said I made a prefab by putting all of the objects in a game empty, then I dragged the game empty into my prefabs folder, thus making it a prefab. But then when I tried to apply the prefab, I started having problems. So the problem isn't in the exporting, but in making it a prefab. And in this case, changing the prefab so that I can use it without having all of these problems. Just exporting the scene isn't enough as I need to use the level as a model/prefab into another scene.