Black CraftDev

Docs/Meshes

Mesh Extractor

Split the objects inside one model into standalone mesh assets, decoupled from the source file.

EditionPro only · launching soonMenuTools›BlackCraft›Hexbench›Meshes›Mesh ExtractorClassMeshExtractorWindow

Takes an imported model, or any GameObject hierarchy, and saves each object in it as a separate mesh asset. A combined FBX or OBJ sheet then no longer has to be kept as one file.

Open it with Tools›BlackCraft›Hexbench›Meshes›Mesh Extractor.

Assign the Source, either the imported model or a GameObject in a scene. Every MeshFilter under it is a candidate. Press Find, untick the pieces you do not want, choose an Export mode and press Extract Selected.

There are two modes. Prefab Per Piece gives every piece its own prefab with the transform reset to identity, so each can be placed on its own. Combined Prefab makes a single prefab whose children keep the source layout. Pieces can be nested several levels deep, so their placement is worked out from world positions.

The mesh assets are copies. The source model is not modified, and re-importing it leaves the extracted meshes alone. Materials are carried across by reference without being duplicated or reassigned.

Modelling apps often export several objects with the same name. Those get a _1, _2 and so on added, so their files do not collide.

meshsplitextractfbxobjprefab