docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor MaterialSet

    MaterialSet(VariantsManager, string, string, string, List<MaterialSwitch>)

    Construct MaterialSet

    Declaration
    public MaterialSet(VariantsManager vm, string t, string sn, string vn, List<VariantsManager.MaterialSwitch> sl)
    Parameters
    Type Name Description
    VariantsManager vm

    The variant manager hosting the switch

    string t

    The type name of the variant

    string sn

    The name of the switch that will be afected

    string vn

    The name of the variant that should be activated

    List<VariantsManager.MaterialSwitch> sl

    All switches available in this model (the switch will be found by switch_name in this list)

    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)