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.ColorProperty

ColorProperty(position: Rect, prop: MaterialProperty, label: string): Color;
Color ColorProperty(Rect position, MaterialProperty prop, string label);
def ColorProperty(position as Rect, prop as MaterialProperty, label as string) as Color
ColorProperty(prop: MaterialProperty, label: string): Color;
Color ColorProperty(MaterialProperty prop, string label);
def ColorProperty(prop as MaterialProperty, label as string) as Color

Parameters

labelLabel for the property.

Description

Draw a property field for a color shader property.