Method OnGUI
OnGUI(MaterialEditor, MaterialProperty[])
To define a custom shader GUI use the methods of materialEditor to render controls for the properties array.
Declaration
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
Parameters
Type | Name | Description |
---|---|---|
MaterialEditor | materialEditor | The MaterialEditor that are calling this OnGUI (the 'owner'). |
MaterialProperty[] | properties | Material properties of the current selected shader. |
Overrides
UnityEditor.ShaderGUI.OnGUI(UnityEditor.MaterialEditor, UnityEditor.MaterialProperty[])