LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

MaterialEditor.ColorProperty

public Color ColorProperty(Rect position, MaterialProperty prop, string label);
public Color ColorProperty(MaterialProperty prop, string label);

Parameters

labelLabel for the property.

Description

Draw a property field for a color shader property.