docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Switch Materials

    Rule Engine
    Switch Renderer materials by materials in the current project based on their names. 'Replace References' mode will replace the materials referenced by the Renderers. Use 'None' as material name to replace null materials. 'Copy Properties' will copy the properties (shader, color, intensities, ...) from the project Material to the Material applied. When copying properties, names of original Materials is kept.

    Parameters

    Parameter Type Description
    mode CopyReplace
    materialReplacement (Replacement) MaterialReplacement[]
    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)