docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ValidateMaterial

    ValidateMaterial(Material)

    Setup properties, keywords and passes on a material to ensure it is in a valid state for rendering with HDRP. This function is only for materials using HDRP Shaders or ShaderGraphs.

    Declaration
    public static bool ValidateMaterial(Material material)
    Parameters
    Type Name Description
    Material material

    The target material.

    Returns
    Type Description
    bool

    False if the material doesn't have an HDRP Shader.

    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)