Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

MaterialEditor.DefaultShaderProperty

public function DefaultShaderProperty(prop: MaterialProperty, label: string): void;
public function 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.