Unity Issue Tracker - Mesh.CombineMeshes discards empty sub-meshes when 'mergeSubmeshes' is set to false
Closed
UUM-7230
Mesh.CombineMeshes discards empty sub-meshes when 'mergeSubmeshes' is set to false
Unity: Mesh
Won't Fix
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
This might be worked around by doing a check when the CombineInstances array is created, e.g. if a mesh has no vertices or no indices, don't add it to the CombineInstances array.
Reproduction steps:
1. Open the attached ‘8224' project
2. Go to the ‘Window → General → Test Runner’
3. Click on the ‘Run All’ button
4. Observe the ‘CombineMeshTest’ results
Expected result: All three tests pass
Actual result: ‘TestSubMeshCount2’ and 'TestSubMeshCount3’ fail