Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DrawColorSwatch(Rect, Color)

Draw a color swatch.
Read time 1 minuteLast updated 4 days 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.