 | EditorUtilsDrawColors Method (Color, Rect, Int32, Int32, Single, Single) |
Draws swatches for the list of colors.
Namespace:
Gamelogic.Extensions.Editor.Internal
Assembly:
Assembly-CSharp-Editor (in Assembly-CSharp-Editor.dll) Version: 0.0.0.0
Syntaxpublic static void DrawColors(
Color[] colorList,
Rect position,
int columns = 2,
int maxColors = 100,
float widthOffset = -2f,
float heightOffset = -2f
)
Parameters
- colorList
- Type: Color
The color list. - position
- Type: Rect
The position where to draw the swatches. - columns (Optional)
- Type: SystemInt32
The number of columns. - maxColors (Optional)
- Type: SystemInt32
The maximum number of colors to draw. - widthOffset (Optional)
- Type: SystemSingle
The width offset. - heightOffset (Optional)
- Type: SystemSingle
The height offset.
See Also