study/first_study/Library/PackageCache/com.unity.collab-proxy@1ec4e416a4af/Editor/ParentWindow.cs
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +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;
}
}
}