A game about forced loneliness, made by TACStudios
1using UnityEditor;
2using UnityEngine;
3
4namespace Unity.PlasticSCM.Editor.UI
5{
6 internal static class DrawSplitter
7 {
8 internal static void ForHorizontalIndicator()
9 {
10 ForWidth(EditorGUIUtility.currentViewWidth);
11 }
12
13 internal static void ForWidth(float width)
14 {
15 GUIStyle style = UnityStyles.SplitterIndicator;
16
17 Rect splitterRect = GUILayoutUtility.GetRect(
18 width,
19 UnityConstants.SPLITTER_INDICATOR_HEIGHT,
20 style);
21
22 GUI.Label(splitterRect, string.Empty, style);
23 }
24 }
25}