- Home /
Import model
Hello Unity3D.I have a little problem with importing models into unity3D. Everytime i reimport a model into unity it goes great for the model part.but for the prefab part,The prefabs of my models always get ruined whenever i reimport a model in unity3D.Is there a way to make it that anytime i reimport a model into unity the prefab of the previous version of the same exact model that i reimport doesn't get ruin each time?
What is going wrong with the prefab model after the reimport and what changes have you made to the model before you have done this?
Oh Like Half the meshes go missing and the animations aswell goes missing.
I have in the past had my prefab setup with the mesh object as a child of the root prefab object. This has two benefits, one : in Blender the x,y,z axis are different from in Unity so I could just rotate the mesh object under the parent to sort this out easily(all movement etc was handled on the parent), two : I could just drag and drop my new mesh version onto this part of the prefab and save/apply after. I kept a model scene, without them prefab-ed which updated better from re-imports than the prefabs, I would go to this scene and drag and drop. This may or may not be of help to you but it did help me at times.
Answer by Tanshaydar · Oct 31, 2014 at 06:51 PM
When you re import, you are rewriting the data that prefab is based on. So, the prefab will change accordingly, usually get broken. To avoid that, you either will have the final version of the model and create a prefab from it, or import models with different names (preferably to different folders to avoid confusion), or create the prefab so that model (mesh renderer) does not affect its structure.
I usually do that with versioning. I had some folders called model_a_V1, model_a_V2, model_a_V3 etc. When things are being finalized, I removed first two folders and renamed model_a_v3 to model_a_final so it gives the idea to everyone working on the project.
These are basic conventions, but if you overwrite a model, it will always affect your previous work.
Oh so its best to either have the final finished or to make versions of it and rename me like v1,v2,v3..... Dang that must sucks...
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Import just one animation 3 Answers
Importing Error From 3D Max 1 Answer
Ihave a problem 0 Answers
Create a Prefab from imported Assets automatically 0 Answers