docs.unity3d.com
Version: 

    Combine Meshes

    Description

    The Combine Meshes function generates a single mesh with a single material (and textures), out of multiple meshes with their own materials and textures.

    The result is a similar looking model, with a reduction of the amount of draw calls:

    • Geometries are not modified, only merged together
    • All UVs are combined and repacked together into a single Atlas
    • Possibility to regenerate UVs
    • All material information is transferred into a single set of textures (diffuse, normal map, opacity…), used by a single material applied to the combined mesh

    Image

    How To

    Select your model and from the Optimize Mesh menu, choose Combine Meshes, and the textures to bake, among:

    • Albedo
    • Normal (texture is automatically baked in "Tangent space")
    • Opacity
    • Roughness
    • Metallic
    • Ambient Occlusion

    API function parameters

    Check the API Reference page to learn more about the function's different parameters and how to use it in Python code:

    • Combine Meshes API Reference page
    Version 2024.2.0.52
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.