Files
GameDevTVObstacleDodge/Library/PackageCache/com.unity.collab-proxy@1ec4e416a4af/Editor/ParentWindow.cs

21 lines
549 B
C#
Raw Normal View History

2026-01-08 16:50:20 +00:00
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;
}
}
}