Version: 2020.3
public void OnGUI (MaterialEditor materialEditor, MaterialProperty[] properties);

参数

materialEditor 正在调用此 OnGUI 的 MaterialEditor(“所有者”)。
properties 当前所选着色器的材质属性。

描述

要定义自定义着色 GUI,请使用 materialEditor 的方法为properties 数组渲染控件。