docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MergeMaterials

    MergeMaterials(MaterialList, bool)

    Merge all equivalent materials (i.e. with same appearance)

    Declaration
    public int MergeMaterials(MaterialList materials = null, bool evaluateNames = false)
    Parameters
    Type Name Description
    MaterialList materials

    Materials to merge (merge all materials if empty)

    bool evaluateNames

    If true, materials names will be taken into consideration (on top of other properties). It means that materials having same properties but different names won't be merged together.

    Returns
    Type Description
    int
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)