mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-11-09 22:32:55 +01:00
21 lines
463 B
C#
21 lines
463 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace TAO.VertexAnimation.Editor
|
|
{
|
|
public static class EditorGUILayoutUtils
|
|
{
|
|
public static readonly Color horizontalLineColor = Color.white;
|
|
|
|
public static void HorizontalLine(Color color)
|
|
{
|
|
Color prev = GUI.color;
|
|
GUI.color = color;
|
|
EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
|
|
GUI.color = prev;
|
|
}
|
|
|
|
public static void HorizontalLine() => HorizontalLine(horizontalLineColor);
|
|
}
|
|
}
|