public static void Refresh(PrimitivesPro.Editor.MeshEditor.MeshEditorSettings settings) { if (shown) { ShowWindow(settings); } }
public static void ShowWindow(PrimitivesPro.Editor.MeshEditor.Grid grid) { var window = EditorWindow.GetWindow(typeof (GridSettings)) as GridSettings; window.grid = grid; window.minSize = new Vector2(400, 300); window.position = new Rect(200, 200, window.minSize.x, window.minSize.y); window.ShowUtility(); }
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; }