Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

MaterialEditor.DefaultShaderProperty

DefaultShaderProperty(prop: MaterialProperty, label: string): void;
void DefaultShaderProperty(MaterialProperty prop, string label);
def DefaultShaderProperty(prop as MaterialProperty, label as string) as void
DefaultShaderProperty(position: Rect, prop: MaterialProperty, label: string): void;
void DefaultShaderProperty(Rect position, MaterialProperty prop, string label);
def DefaultShaderProperty(position as Rect, prop as MaterialProperty, label as string) as void

Description

Handles UI for one shader property ignoring any custom drawers.

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