docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor MaterialSwitch

    MaterialSwitch(GameObject, string, string)

    Construct MaterialSwitch

    Declaration
    public MaterialSwitch(GameObject root, string switchName, string materialVariantsFile)
    Parameters
    Type Name Description
    GameObject root

    The object containing all material variants

    string switchName

    The name of the variant set to look for

    string materialVariantsFile

    The file path of the file containing material variants

    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)