docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DecalShaderGraphGUI

    Represents the GUI for HDRP Shader Graph materials.

    Inheritance
    object
    ShaderGUI
    HDShaderGUI
    DecalShaderGraphGUI
    Inherited Members
    HDShaderGUI.SetupMaterialKeywordsAndPass(Material)
    HDShaderGUI.OnGUI(MaterialEditor, MaterialProperty[])
    HDShaderGUI.OnMaterialPreviewGUI(MaterialEditor, Rect, GUIStyle)
    HDShaderGUI.OnMaterialInteractivePreviewGUI(MaterialEditor, Rect, GUIStyle)
    ShaderGUI.OnMaterialPreviewSettingsGUI(MaterialEditor)
    ShaderGUI.OnClosed(Material)
    ShaderGUI.AssignNewShaderToMaterial(Material, Shader, Shader)
    ShaderGUI.FindProperty(string, MaterialProperty[])
    ShaderGUI.FindProperty(string, MaterialProperty[], bool)
    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 DecalShaderGraphGUI : HDShaderGUI

    Properties

    uiBlocks

    The list of UI Blocks Unity uses to render the material inspector.

    Declaration
    protected MaterialUIBlockList uiBlocks { get; }
    Property Value
    Type Description
    MaterialUIBlockList

    Methods

    OnMaterialGUI(MaterialEditor, MaterialProperty[])

    Override this function to implement your custom GUI. To display a user interface similar to HDRP shaders, use a MaterialUIBlockList.

    Declaration
    protected override void OnMaterialGUI(MaterialEditor materialEditor, MaterialProperty[] props)
    Parameters
    Type Name Description
    MaterialEditor materialEditor

    The current material editor.

    MaterialProperty[] props

    The list of properties the material has.

    Overrides
    HDShaderGUI.OnMaterialGUI(MaterialEditor, MaterialProperty[])

    SetupDecalKeywordsAndPass(Material)

    Sets up the keywords and passes for a Decal Shader Graph material.

    Declaration
    public static void SetupDecalKeywordsAndPass(Material material)
    Parameters
    Type Name Description
    Material material

    The selected material.

    ValidateMaterial(Material)

    Sets up the keywords and passes for the current selected material.

    Declaration
    public override void ValidateMaterial(Material material)
    Parameters
    Type Name Description
    Material material

    The selected material.

    Overrides
    ShaderGUI.ValidateMaterial(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)