Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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