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
colorsPropSerializedPropertyThe colors property.
positionRectThe 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
colorListColor[]The color list.
positionRectThe position where to draw the swatches.
columnsintThe number of columns.
maxColorsintThe maximum number of colors to draw.
widthOffsetfloatThe width offset.
heightOffsetfloatThe 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)