Class EditorUtils
- Namespace
- Gamelogic.Extensions.Editor.Internal
- Assembly
- Assembly-CSharp-Editor.dll
Provides utility methods used for editor code.
public static class EditorUtils
- Inheritance
-
EditorUtils
- Inherited Members
Methods
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)
Parameters
colorList
Color[]The color list.
position
RectThe position where to draw the swatches.
columns
intThe number of columns.
maxColors
intThe maximum number of colors to draw.
widthOffset
floatThe width offset.
heightOffset
floatThe height offset.
DrawNodeCurve(Rect, Rect)
Draws a curve from the start to the end rectangles.
public static void DrawNodeCurve(Rect start, Rect end)
Parameters
DrawNodeCurve(Rect, Vector3)
Draws a curve from the start to the end position.
public static void DrawNodeCurve(Rect start, Vector3 endPosition)