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!
29 lines
753 B
C#
29 lines
753 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Unity.PlasticSCM.Editor.UI
|
|
{
|
|
internal static class DrawActionToolbar
|
|
{
|
|
internal static void Begin(EditorWindow parentWindow)
|
|
{
|
|
Rect result = GUILayoutUtility.GetRect(parentWindow.position.width, 1);
|
|
EditorGUI.DrawRect(result, UnityStyles.Colors.BarBorder);
|
|
|
|
EditorGUILayout.BeginVertical(UnityStyles.ActionToolbar);
|
|
GUILayout.FlexibleSpace();
|
|
|
|
EditorGUILayout.BeginHorizontal();
|
|
}
|
|
|
|
internal static void End()
|
|
{
|
|
GUILayout.FlexibleSpace();
|
|
|
|
EditorGUILayout.EndHorizontal();
|
|
|
|
GUILayout.FlexibleSpace();
|
|
EditorGUILayout.EndVertical();
|
|
}
|
|
}
|
|
} |