Documentation

Unity Engine

Unity Engine

OnGUI(MaterialEditor, MaterialProperty[])

To define a custom shader GUI use the methods of materialEditor to render controls for the properties array.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public virtual void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)

Parameters

materialEditor

The MaterialEditor that are calling this OnGUI (the 'owner').

Material properties of the current selected shader.