docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method AddMaterial

    AddMaterial(Renderer, Material)

    Adds a material to this renderer's array of shared materials.

    Declaration
    public static void AddMaterial(this Renderer renderer, Material material)
    Parameters
    Type Name Description
    Renderer renderer

    The renderer on which to add the material.

    Material material

    The material to add.

    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)