docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HDShaderUtils

    Utility class for shaders.

    Inheritance
    object
    HDShaderUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Editor.dll
    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
    bool

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

    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)