예제 #1
0
 public static void Refresh(PrimitivesPro.Editor.MeshEditor.MeshEditorSettings settings)
 {
     if (shown)
     {
         ShowWindow(settings);
     }
 }
예제 #2
0
        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();
        }
예제 #3
0
		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;
        }