docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReplaceMaterial

    ReplaceMaterial(uint, uint, OccurrenceList)

    Replace a material by another everywhere it is used

    Declaration
    public void ReplaceMaterial(uint originalMaterial, uint newMaterial, OccurrenceList occurrences = null)
    Parameters
    Type Name Description
    uint originalMaterial

    The material to replace everywhere

    uint newMaterial

    The new material to set in place of originalMaterial

    OccurrenceList occurrences

    The occurrences on which replacing the materials

    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)