This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
|
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;
|
|
}
|
|
}
|
|
}
|