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

21 lines
549 B
C#

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