docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetSubpartMaterials

    SetSubpartMaterials(uint, MaterialList, uint)

    Set multiple subpart materials at once using a SubpartMaterial component

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void SetSubpartMaterials(uint occurrence, MaterialList materials, uint startIndex = 0)
    Parameters
    Type Name Description
    uint occurrence

    The Occurrence on which to apply the materials

    MaterialList materials

    Materials to set

    uint startIndex

    The subpart start index

    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)