コード例 #1
0
ファイル: SettingsWindow.cs プロジェクト: jfeng94/Thesis
 public static void Refresh(PrimitivesPro.Editor.MeshEditor.MeshEditorSettings settings)
 {
     if (shown)
     {
         ShowWindow(settings);
     }
 }
コード例 #2
0
ファイル: GridSettings.cs プロジェクト: jaroosh/Habitat
        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
ファイル: SettingsWindow.cs プロジェクト: jfeng94/Thesis
		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;
        }