docs.unity3d.com
    显示 / 隐藏目录

    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

    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)