docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MergePartsByMaterials

    MergePartsByMaterials(OccurrenceList, bool, MergeHiddenPartsMode, bool)

    Merge a set of parts by materials

    Declaration
    public OccurrenceList MergePartsByMaterials(OccurrenceList partOccurrences, bool mergeNoMaterials = true, MergeHiddenPartsMode mergeHiddenPartsMode = MergeHiddenPartsMode.MergeSeparately, bool combineMeshes = true)
    Parameters
    Type Name Description
    OccurrenceList partOccurrences

    Occurrence 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

    bool combineMeshes

    If true, explode and remerge the input parts by visible materials

    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)