Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

EditorGUIUtility.DrawColorSwatch

public static void DrawColorSwatch(Rect position, Color color);

Parameters

position The rectangle to draw the color swatch within.
color The color to draw.

Description

Draw a color swatch.