Method OnGUI
OnGUI(MaterialEditor, MaterialProperty[])
Unity calls this function when it displays the GUI. This method is sealed so you cannot override it. To implement your custom GUI, use OnMaterialGUI instead.
Declaration
public override sealed void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props)
Parameters
Type | Name | Description |
---|---|---|
MaterialEditor | materialEditor | Material editor instance. |
MaterialProperty[] | props | The list of properties in the inspected material(s). |