Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

MaterialEditor.DefaultShaderProperty

Switch to Manual
public function DefaultShaderProperty(prop: MaterialProperty, label: string): void;
public function DefaultShaderProperty(position: Rect, prop: MaterialProperty, label: string): void;

Parameters

Description

Handles UI for one shader property ignoring any custom drawers.

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