docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnMaterialGUI

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