Version: 2017.3
public float GetPropertyHeight (MaterialProperty prop, string label, MaterialEditor editor);

参数

prop 要为其创建自定义 GUI 的 MaterialProperty
label 此属性的标签。
editor 当前的材质编辑器。

描述

重写此方法,以指定此属性的 GUI 的高度(以像素为单位)。

默认高度为一行。