Method DrawColors
- Namespace
- Gamelogic.Extensions.Editor.Internal
- Assembly
- Gamelogic.Extensions.Editor.dll
DrawColors(SerializedProperty, Rect)
Draws swatches for a property that is an array of colors.
public static void DrawColors(SerializedProperty colorsProp, Rect position)
Parameters
colorsProp
SerializedPropertyThe colors property.
position
RectThe position.
DrawColors(Color[], Rect, int, int, float, float)
Draws swatches for the list of colors.
public static void DrawColors(Color[] colorList, Rect position, int columns = 2, int maxColors = 100, float widthOffset = -2, float heightOffset = -2)