public static void Refresh(PrimitivesPro.Editor.MeshEditor.MeshEditorSettings settings)
 {
     if (shown)
     {
         ShowWindow(settings);
     }
 }
        public static void ShowWindow(PrimitivesPro.Editor.MeshEditor.MeshEditorSettings settings)
        {
            var window = EditorWindow.GetWindow(typeof(SettingsWindow)) as SettingsWindow;

            window.settings = settings;

            if (!shown)
            {
                window.minSize  = new Vector2(400, 350);
                window.position = new Rect(200, 200, window.minSize.x, window.minSize.y);
            }

            window.ShowUtility();
            shown = true;
        }