docs.unity3d.com
    Show / Hide Table of Contents

    Class HDShaderUtils

    Utility class for shaders.

    Inheritance
    Object
    HDShaderUtils
    Namespace: UnityEditor.Rendering.HighDefinition
    Syntax
    public class HDShaderUtils

    Methods

    ResetMaterialKeywords(Material)

    Reset the dedicated Keyword and Pass regarding the shader kind. Also re-init the drawers and set the material dirty for the engine.

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

    The material that needs to be setup

    Returns
    Type Description
    Boolean

    True: managed to do the operation. False: unknown shader used in material

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023