Documentation

Unity Engine

Unity Engine

DrawColorSwatch(Rect, Color)

Draw a color swatch.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void DrawColorSwatch(Rect position, Color color)

Parameters

position

The rectangle to draw the color swatch within.

color

The color to draw.