Singularity/Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/ParentWindow.cs
2024-05-06 11:45:45 -07:00

16 lines
359 B
C#

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;
}
}
}