generated from max/template-unity-project
max
cf3198b0b7
- Added clear button here instead of in ScenePartitionSOEditor - Added editor util for horizontal line - Exposed scene grid cell size value
20 lines
538 B
C#
20 lines
538 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace VertexColor.ScenePartition.Editor
|
|
{
|
|
public static class EditorGUIUtils
|
|
{
|
|
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);
|
|
}
|
|
} |