wuxianshengcong/Library/PackageCache/com.unity.collab-proxy@2.5.2/Editor/PlasticSCM/ParentWindow.cs

16 lines
359 B
C#
Raw Permalink Normal View History

2025-01-02 14:49:00 +08:00
using UnityEditor;
namespace Unity.PlasticSCM.Editor
{
internal class ParentWindow
{
internal static EditorWindow Get()
{
if (EditorWindow.HasOpenInstances<PlasticWindow>())
return EditorWindow.GetWindow<PlasticWindow>(false, null, false);
return EditorWindow.focusedWindow;
}
}
}