docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ShaderGraphUIBlock

    The UI block that represents Shader Graph material properties. This UI block displays every non-hidden property inside a shader. You can also use this with non-shadergraph shaders.

    Inheritance
    object
    MaterialUIBlock
    ShaderGraphUIBlock
    Inherited Members
    MaterialUIBlock.expandableBit
    MaterialUIBlock.header
    MaterialUIBlock.materialEditor
    MaterialUIBlock.materials
    MaterialUIBlock.properties
    MaterialUIBlock.parent
    MaterialUIBlock.FindProperty(string, bool)
    MaterialUIBlock.FindPropertyLayered(string, int, bool)
    MaterialUIBlock.OnGUI()
    MaterialUIBlock.isSubHeader
    MaterialUIBlock.showSection
    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 ShaderGraphUIBlock : MaterialUIBlock

    Constructors

    Name Description
    ShaderGraphUIBlock(ExpandableBit, Features)

    Constructs a ShaderGraphUIBlock based on the parameters.

    Methods

    Name Description
    DrawDiffusionProfileUI()

    Draw the built-in exposed Diffusion Profile when a material uses sub-surface scattering or transmission.

    DrawShadowMatteToggle()

    Draws the Shadow Matte settings. This is only available for Unlit materials.

    LoadMaterialProperties()

    Loads the material properties for the block.

    OnGUIOpen()

    Renders the properties in the block.

    PropertiesDefaultGUI(MaterialProperty[])

    Draws the material properties.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)