File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
UOP1_Project/Assets/Scripts/Editor Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,13 @@ private void OnEnable()
27
27
assetSearchFolders [ 0 ] = "Assets/ScriptableObjects" ;
28
28
29
29
FindAllSOs ( ) ;
30
+ FindDisplaySOs ( ) ;
30
31
}
31
32
32
33
void OnFocus ( )
33
34
{
34
35
FindAllSOs ( ) ;
36
+ FindDisplaySOs ( ) ;
35
37
}
36
38
37
39
[ MenuItem ( "Tools/SOs Quick Access Tool" ) ]
@@ -42,27 +44,26 @@ private static void ShowWindow()
42
44
43
45
void OnGUI ( )
44
46
{
45
- GUILayout . Space ( EditorGUIUtility . singleLineHeight ) ;
47
+ GUILayout . Space ( EditorGUIUtility . singleLineHeight * 0.5f ) ;
46
48
49
+ GUILayout . BeginHorizontal ( ) ;
50
+
51
+ DrawSOsPicker ( ) ;
47
52
if ( GUILayout . Button ( "Refresh All" ) )
48
53
{
49
54
FindAllSOs ( ) ;
50
55
FindDisplaySOs ( ) ;
51
56
}
52
57
53
- GUILayout . Space ( EditorGUIUtility . singleLineHeight ) ;
54
- GUILayout . Label ( "Please select a Scriptable Object Type To Search For" ) ;
55
- GUILayout . Space ( EditorGUIUtility . singleLineHeight ) ;
56
- DrawSOsPicker ( ) ;
57
-
58
- GUILayout . Space ( EditorGUIUtility . singleLineHeight * 3f ) ;
58
+ GUILayout . EndHorizontal ( ) ;
59
+
59
60
DrawSOsList ( ) ;
60
61
}
61
62
62
63
void DrawSOsPicker ( )
63
64
{
64
65
EditorGUI . BeginChangeCheck ( ) ;
65
- selected = EditorGUILayout . Popup ( "Scriptable Object Types" , selected , SOTypes . ToArray ( ) ) ;
66
+ selected = EditorGUILayout . Popup ( GUIContent . none , selected , SOTypes . ToArray ( ) ) ;
66
67
if ( EditorGUI . EndChangeCheck ( ) )
67
68
{
68
69
FindDisplaySOs ( ) ;
You can’t perform that action at this time.
0 commit comments