Files
Test-Multiplayer/Library/PackageCache/com.unity.collab-proxy@1e5e48aff19d/Editor/UI/GetWindowIfOpened.cs
pelpanagiotis 329b7d3183 First Commit
2025-12-21 18:31:02 +02: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);
}
}
}