docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CombineMaterials

    CombineMaterials(OccurrenceList, BakeOption, bool, bool)

    Combine materials found on occurrences subtrees into one baked material and assign it to part occurrences

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void CombineMaterials(OccurrenceList occurrences, BakeOption bakingOptions, bool overrideExistingUVs = true, bool singularizeOnAO = false)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Root occurrences to process

    BakeOption bakingOptions

    Baking options

    bool overrideExistingUVs

    If True, override existing UVs on channel

    bool singularizeOnAO

    If true, singularize all instances in the selected subtree if we want to bake AO in the texture

    In This Article
    Back to top
    Copyright © 2025 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)