@@ -16,26 +16,25 @@ class PrefabsListWindow : EditorWindow
1616
1717 private bool showAllPrefabs = false ;
1818
19+ private float rightColumn { get => position . width / 3 * 2 + 40 ; }
20+
1921 Rect multiColumnTreeViewRect
2022 {
2123 get { return new Rect ( 20 , 30 , position . width - position . width / 3 , position . height - 45 ) ; }
2224 }
2325
24- Rect optionsRect
25- {
26- get { return new Rect ( position . width / 3 * 2 + 40 , 10 , position . width - ( position . width / 3 * 2 + 40 ) - 20 , 50 ) ; }
27- }
28-
2926 Rect previewImageRect
3027 {
31- get { return new Rect ( position . width / 3 * 2 + 40 , 60 , position . width - ( position . width / 3 * 2 + 40 ) - 20 , position . width - ( position . width / 3 * 2 + 40 ) - 20 ) ; }
28+ get { return new Rect ( rightColumn , 10 , position . width - rightColumn - 20 , position . width - rightColumn - 20 ) ; }
3229 }
3330
3431 Rect previewImageDetails
3532 {
36- get { return new Rect ( position . width / 3 * 2 + 40 , position . width - ( position . width / 3 * 2 + 40 ) + 60 , position . width - ( position . width / 3 * 2 + 40 ) - 20 , position . width - ( position . width / 3 * 2 + 40 ) - 20 ) ; }
33+ get { return new Rect ( rightColumn , position . width - rightColumn + 10 , position . width - rightColumn - 20 , 120 ) ; }
3734 }
3835
36+ Rect options { get { return new Rect ( rightColumn , previewImageDetails . height + previewImageRect . height , position . width - rightColumn - 20 , position . height - previewImageDetails . height + previewImageRect . height ) ; } }
37+
3938 Rect searchBarRect
4039 {
4140 get { return new Rect ( 20 , 10 , position . width - position . width / 3 , 20 ) ; }
@@ -119,9 +118,9 @@ void OnGUI()
119118 InitIfNeeded ( ) ;
120119 DrawSearchBar ( searchBarRect ) ;
121120 DrawTreeView ( multiColumnTreeViewRect ) ;
122- DrawOptions ( optionsRect , treeView , ref showAllPrefabs ) ;
123121 DrawPreviewImage ( previewImageRect ) ;
124122 DrawPreviewDetails ( previewImageDetails ) ;
123+ DrawOptions ( options , treeView , ref showAllPrefabs ) ;
125124 }
126125
127126 void DrawSearchBar ( Rect rect )
@@ -137,6 +136,7 @@ void DrawTreeView(Rect rect)
137136 void DrawOptions ( Rect rect , PrefabsListTreeView treeView , ref bool showAllPrefabs )
138137 {
139138 GUILayout . BeginArea ( rect ) ;
139+ Functions . AssetBundle ( ) ;
140140 Functions . SelectPrefabPaths ( treeView , ref showAllPrefabs ) ;
141141 GUILayout . EndArea ( ) ;
142142 }
0 commit comments