Extracting / deleting children from Prefab

I have an FBX-file which includes a mesh (The second AdultMaleLowPoly?) and an Armature, and an Avatar that I want to keep.

I don’t want all these lamps/cameras that are embedded, and if I place it in the scene and then delete them, it breaks the prefab instance. If I accept that, delete the lamps, and the original .FBX file, the mesh disappears.

I might be confused between a Prefab file (.prefab) and this FBX-file, since both can be dragged into the scene.

I tried importing the FBX to Blender, first time, the arms looked weird, the second time it complains that it can’t import an ASCII FBX file. Not sure how I was able to import it the first time.

Is there any way to break up the file into parts, so I can make my own prefab without being dependent on this FBX that has the mesh and avatar?

The animation could be extracted by CMD-D (Duplicate), but nothing else, it only copies the entire FBX-file.

Here’s what it looks like if it helps. Thanks!

Let’s say try putting the fbx in the scene (should create a game object), and then drag that game object into the assets folder wherever. Now, if you remove whatever’s in the scene , drag the prefab you’ve just made , can you delete the parts you want? :slight_smile: lol

1 Like

The FBX is the actual file for the model. You don’t want to delete that.

When you drag an FBX onto the Scene or Hierarchy, what it actually does is create an instance of that model using Unity’s MeshRenderer and MeshFilter components on a new GameObject. This is also assumed to be sort of a prefab tied to that model… kind of a shortcut, if you will.

When you delete a part (child) of that object, you get the message from Unity about breaking the prefab instance. Do whatever you want to get things the way you want them, and then drag the top-most GameObject from the Hierarchy into a folder in your Project window. This creates a new prefab (and instance) that you can use going forward. Alternatively, you can create the extra prefab first, drag an instance into the scene, modify it, then choose GameObject → Apply Changes to Prefab from the menu bar.

1 Like

I think I may have partially misread the OP’s post when I gave my longer answer (compared to @Schneider21 ). Don’t delete the .fbx :slight_smile:

1 Like