MeshFilterExtensions.CombineMeshes
Extension Method in MeshFilterExtensions
Declaration
public static Mesh CombineMeshes(this MeshFilter[] filters, string combinedMeshName = "Combined Mesh", bool optimizeMesh = true, bool recalculateBounds = true)
Description
Combines the meshes of the mesh filters into one mesh.
Parameters
filters | The mesh filters to combine. |
combinedMeshName | The name of the new combined mesh. |
optimizeMesh | Optimizes the combined mesh data to improve rendering performance. |
recalculateBounds | Recalculates the bounding volume of the combined mesh. |
Returns
Mesh | The combined mesh. |