docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnGUI

    OnGUI(MaterialEditor, MaterialProperty[])

    Unity calls this function when it displays the GUI. To implement your custom GUI, override this function..

    Declaration
    public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
    Parameters
    Type Name Description
    MaterialEditor materialEditor

    Material editor instance.

    MaterialProperty[] properties

    The list of properties in the inspected material(s).

    Overrides
    ShaderGUI.OnGUI(MaterialEditor, MaterialProperty[])
    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 06 October 2023