Unity_Learn/Library/PackageCache/com.unity.collab-proxy@8f3c30ecd081/Editor/UI/ShowWindow.cs
2025-09-04 16:57:16 +09:00

43 lines
1.2 KiB
C#

using System;
using UnityEditor;
using Unity.PlasticSCM.Editor.CloudDrive;
namespace Unity.PlasticSCM.Editor.UI
{
internal static class ShowWindow
{
internal static UVCSWindow UVCS()
{
UVCSWindow window = EditorWindow.GetWindow<UVCSWindow>(
UnityConstants.UVCS_WINDOW_TITLE,
true,
mConsoleWindowType,
mProjectBrowserType);
window.titleContent.image = UVCSPlugin.Instance.GetPluginStatusIcon();
return window;
}
internal static CloudDriveWindow CloudDrive()
{
CloudDriveWindow window = EditorWindow.GetWindow<CloudDriveWindow>(
UnityConstants.CloudDrive.WINDOW_TITLE,
true,
mConsoleWindowType,
mProjectBrowserType);
window.titleContent.image = Images.GetCloudDriveViewIcon();
return window;
}
static Type mConsoleWindowType = typeof(EditorWindow).
Assembly.GetType("UnityEditor.ConsoleWindow");
static Type mProjectBrowserType = typeof(EditorWindow).
Assembly.GetType("UnityEditor.ProjectBrowser");
}
}