Combine meshes manually
Merge multiple meshes into a single mesh that Unity can render in a single draw call.
阅读时间1 分钟最后更新于 1 个月前
You can manually combine multiple meshes into a single mesh as a draw call optimization technique. Unity renders the combined mesh in a single draw call instead of one draw call per mesh. This technique can be a good alternative to draw call batching in cases where the meshes are close together and don't move relative to one another. For example, for a static cupboard with lots of drawers, it makes sense to combine everything into a single mesh.
There are two main ways to combine meshes:
- In your asset generation tool while authoring the mesh.
- In Unity using Mesh.CombineMeshes.