9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
26 lines
623 B
C#
26 lines
623 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Unity.PlasticSCM.Editor.UI
|
|
{
|
|
internal static class DrawSplitter
|
|
{
|
|
internal static void ForHorizontalIndicator()
|
|
{
|
|
ForWidth(EditorGUIUtility.currentViewWidth);
|
|
}
|
|
|
|
internal static void ForWidth(float width)
|
|
{
|
|
GUIStyle style = UnityStyles.SplitterIndicator;
|
|
|
|
Rect splitterRect = GUILayoutUtility.GetRect(
|
|
width,
|
|
UnityConstants.SPLITTER_INDICATOR_HEIGHT,
|
|
style);
|
|
|
|
GUI.Label(splitterRect, string.Empty, style);
|
|
}
|
|
}
|
|
}
|