Documentation

Unity Engine


User Manual

Script Reference

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 7 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.