Net-Game/Library/PackageCache/com.unity.collab-proxy@50ac96531b63/Editor/UI/ShowWindow.cs
2025-03-28 08:33:16 -04:00

27 lines
767 B
C#

using System;
using UnityEditor;
namespace Unity.PlasticSCM.Editor.UI
{
internal static class ShowWindow
{
internal static PlasticWindow Plastic()
{
PlasticWindow window = EditorWindow.GetWindow<PlasticWindow>(
UnityConstants.PLASTIC_WINDOW_TITLE,
true,
mConsoleWindowType,
mProjectBrowserType);
window.UpdateWindowIcon(PlasticPlugin.GetNotificationStatus());
return window;
}
static Type mConsoleWindowType = typeof(EditorWindow).
Assembly.GetType("UnityEditor.ConsoleWindow");
static Type mProjectBrowserType = typeof(EditorWindow).
Assembly.GetType("UnityEditor.ProjectBrowser");
}
}