- Home /
The question is answered, right answer was accepted
Confusion over the creation of a child when importing from blender
A while ago, I imported a pan that I had made in blender into unity, and it imported as a gameobject (the name being the title of the fbx file) with a child (the name being the object that was animated in the fbx file). The animation component was on the parent, and the mesh renderer was on the child. So I created my scripts and got the pan working as a weapon in first person. Recently, after having updated unity to 4.6, I imported another weapon from blender. However, this time, the weapon was imported as a single game object, with no child. The mesh renderer and animation component were both on this gameobject. I don't know why it is importing differently now, whether I did something different or unity or blender updates have changed something.
This is an issue for me because now I am not sure whether to write code that animates a gameobject or its child when considering future weapons i may bring in. My question is, is there a way to ensure that only one of the above scenarios occurs, preferably the first? Thanks in advance, and I will be sure to add more information if it is needed.
Before even initially posting this I have discovered the issue. Deleting the camera and lamp within blender causes the object to be imported as a single gameobject. I will post this anyways in case someone has a similar problem. If doing so is not allowed, I apologize and by all means remove this.
Follow this Question
Related Questions
why do all the child objects become deformed when i import them from blender to unity? 2 Answers
Blender Shape not detected by Unity 0 Answers
Blender Export Problems 0 Answers
Two Questions: 1 Importing Models, 2: Targetting Help 1 Answer
Exporting a package causes invisible models and broken links in the inpesctor 0 Answers