docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetMaterialKeywords

    SetMaterialKeywords(Material, Action<Material>, Action<Material>)

    Sets up the keywords for the material and shader.

    Declaration
    public static void SetMaterialKeywords(Material material, Action<Material> shadingModelFunc = null, Action<Material> shaderFunc = null)
    Parameters
    Type Name Description
    Material material

    The material to use.

    Action<Material> shadingModelFunc

    Function to set shading models.

    Action<Material> shaderFunc

    Function to set some extra shader parameters.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)