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;
DefaultShaderProperty(position: Rect, prop: MaterialProperty, label: string): 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.