using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; namespace UIExt { internal static class GUIUtils { public static void DrawLine() { } public static void DrawHorizontalline(Color color, Vector2 left, float length, int thickness = 1, int padding = 0) { Rect r = EditorGUILayout.GetControlRect(GUILayout.Height(padding + thickness)); r.x = left.x; r.y = left.y; r.width = length; EditorGUI.DrawRect(r, color); GUILayout.Space(-10f); } public static void DrawVerticleline(Color color, Vector2 top, float height, int thickness = 1, int padding = 0) { Rect r = EditorGUILayout.GetControlRect(GUILayout.Width(padding + thickness)); r.x = top.x; r.y = top.y; r.height = height; EditorGUI.DrawRect(r, color); GUILayout.Space(-10f); } } }