Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MaterialEditor.DefaultShaderProperty

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

Description

Handles UI for one shader property ignoring any custom drawers.

This is similar to ShaderProperty function, except it ignores any custom MaterialPropertyDrawer objects.