
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
19 lines
404 B
C#
19 lines
404 B
C#
using UnityEditor;
|
|
|
|
namespace Unity.PlasticSCM.Editor.UI
|
|
{
|
|
internal static class CloseWindowIfOpened
|
|
{
|
|
internal static void Plastic()
|
|
{
|
|
if (!EditorWindow.HasOpenInstances<PlasticWindow>())
|
|
return;
|
|
|
|
PlasticWindow window = EditorWindow.
|
|
GetWindow<PlasticWindow>(null, false);
|
|
|
|
window.Close();
|
|
}
|
|
}
|
|
}
|