MaterialEditor.ShaderProperty

Declaration

public void ShaderProperty(MaterialProperty prop, string label);

Declaration

public void ShaderProperty(Rect position, MaterialProperty prop, string label);

Description

Handes UI for one shader property.

This function will draw appropriate UI for the given shader property, depending on its type.

Any custom MaterialPropertyDrawer objects defined for this property in the shader will also be applied. If you want to draw the "default" UI without any custom drawers, use DefaultShaderProperty function.

Additional resources: MaterialProperty, MaterialPropertyDrawer.


Did you find this page useful? Please give it a rating: