private ShaderPropertyInternal ( |
||
position | ||
prop | ||
label | string | |
return | void |
private void ShaderPropertyInternal(Rect position, MaterialProperty prop, string label)
{
MaterialPropertyHandler handler = MaterialPropertyHandler.GetHandler(((Material) this.target).shader, prop.name);
if (handler != null)
{
if (label == null)
{
}
handler.OnGUI(ref position, prop, prop.displayName, this);
if (handler.propertyDrawer != null)
{
return;
}
}
this.DefaultShaderProperty(position, prop, label);
}