Firstborn/Library/PackageCache/com.unity.collab-proxy@1.17.7/Editor/PlasticSCM/UI/DrawSplitter.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

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);
}
}
}