Method OnOpenGUI
OnOpenGUI(Material, MaterialEditor, MaterialProperty[])
Unity calls this function when it displays the GUI. To implement your custom GUI, override this function..
Declaration
public virtual void OnOpenGUI(Material material, MaterialEditor materialEditor, MaterialProperty[] properties)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The target materials for this GUI. |
MaterialEditor | materialEditor | Material editor instance. |
MaterialProperty[] | properties | The list of properties in the inspected material(s). |