docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CombineMeshesByMaterials

    CombineMeshesByMaterials(OccurrenceList, bool, MergeHiddenPartsMode)

    Explode and (re)merge a set of mesh parts by visible materials

    Declaration
    public OccurrenceList CombineMeshesByMaterials(OccurrenceList occurrences, bool mergeNoMaterials = true, MergeHiddenPartsMode mergeHiddenPartsMode = MergeHiddenPartsMode.Destroy)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Occurrences of the parts to merge

    bool mergeNoMaterials

    If true, merge all parts with no active material together, else do not merge them

    MergeHiddenPartsMode mergeHiddenPartsMode

    Hidden parts handling mode, Destroy them, make visible or merge separately

    Returns
    Type Description
    OccurrenceList
    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)