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

26 lines
629 B
C#

using UnityEditor;
using Unity.PlasticSCM.Editor.CloudDrive;
namespace Unity.PlasticSCM.Editor.UI
{
internal static class GetWindowIfOpened
{
internal static UVCSWindow UVCS()
{
if (!EditorWindow.HasOpenInstances<UVCSWindow>())
return null;
return EditorWindow.GetWindow<UVCSWindow>(null, false);
}
internal static CloudDriveWindow CloudDrive()
{
if (!EditorWindow.HasOpenInstances<CloudDriveWindow>())
return null;
return EditorWindow.GetWindow<CloudDriveWindow>(null, false);
}
}
}