#4237·FlaxEngine

[Request]: Merge meshes when importing glTF/GLB when imported as prefab.

Author: Olav-TTGCreated Aug 25, 2026Updated Aug 25, 2026
Labelsdiscussioncontent

Description

As it stands when importing a glb model as prefab it will split the mesh into parts per mesh per material. This happens regardless of import setting. Merge Meshes can be toggled and nothing will change. It may have been an oversight, maybe not. It does follow the structure of glTF to a degree. It is sort of split per material in glTF-land, but there are also nodes in the json structure pointing to an overarching mesh containing the correct buffers.

Included a testfile, two cubes. One cube has material 1, the other has material 1 and material 2. In theory it should only split the meshes based on mesh/node name in the hierarchy, but it splits it per mesh per material.

cubetest.zip

Benefits

Simplifies importing of an industry standard format when importing as prefab. Prefab import type imports everything correctly for FBX, where it import mesh, material, animations etc correctly, so having it import correctly for glTF and GLBs would be a boon.