This version of Unity is unsupported.

EditorGUIUtility.DrawColorSwatch

Declaration

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.