docs.unity3d.com
    Show / Hide Table of Contents

    Class LightingShaderGraphGUI

    Common GUI for Lit ShaderGraphs.

    Inheritance
    Object
    ShaderGUI
    HDShaderGUI
    LightingShaderGraphGUI
    Inherited Members
    HDShaderGUI.SetupMaterialKeywordsAndPass(Material)
    HDShaderGUI.OnGUI(MaterialEditor, MaterialProperty[])
    ShaderGUI.OnMaterialPreviewGUI(MaterialEditor, Rect, GUIStyle)
    UnityEditor.ShaderGUI.OnMaterialInteractivePreviewGUI(UnityEditor.MaterialEditor, UnityEngine.Rect, UnityEngine.GUIStyle)
    ShaderGUI.OnMaterialPreviewSettingsGUI(MaterialEditor)
    ShaderGUI.OnClosed(Material)
    ShaderGUI.AssignNewShaderToMaterial(Material, Shader, Shader)
    ShaderGUI.FindProperty(String, MaterialProperty[])
    ShaderGUI.FindProperty(String, MaterialProperty[], Boolean)
    Namespace: UnityEditor.Rendering.HighDefinition
    Syntax
    public class LightingShaderGraphGUI : HDShaderGUI

    Properties

    uiBlocks

    List of UI Blocks used to render the material inspector.

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

    Methods

    OnMaterialGUI(MaterialEditor, MaterialProperty[])

    Implement your custom GUI in this function. To display a UI 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[])

    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)
    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