File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Assets/Scripts/Editor/Tools Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ void OnGUI()
36
36
if ( selection == null )
37
37
{
38
38
EditorGUILayout . LabelField ( "Select gameobject from scene or hierarchy.." ) ;
39
-
40
39
}
41
40
else
42
41
{
@@ -76,7 +75,7 @@ void OnGUI()
76
75
EditorGUILayout . Space ( ) ;
77
76
EditorGUILayout . LabelField ( "TOP 20" , EditorStyles . boldLabel ) ;
78
77
79
- // top 10
78
+ // top list
80
79
if ( meshes != null && sortedTopList != null )
81
80
{
82
81
int i = 0 ;
@@ -85,11 +84,11 @@ void OnGUI()
85
84
int percent = ( int ) ( item . Value / ( float ) totalVertices * 100f ) ;
86
85
EditorGUILayout . BeginHorizontal ( ) ;
87
86
// ping button
88
- if ( GUILayout . Button ( " " , GUILayout . Width ( 16 ) ) )
87
+ if ( GUILayout . Button ( new GUIContent ( " " , "Ping" ) , GUILayout . Width ( 16 ) ) )
89
88
{
90
- EditorGUIUtility . PingObject ( meshes [ i ] . transform ) ;
89
+ EditorGUIUtility . PingObject ( meshes [ item . Key ] . transform ) ;
91
90
}
92
- EditorGUILayout . LabelField ( meshes [ i ] . name + " = " + item . Value + " (" + percent + "%)" ) ;
91
+ EditorGUILayout . LabelField ( meshes [ item . Key ] . name + " = " + item . Value + " (" + percent + "%)" ) ;
93
92
GUILayout . ExpandWidth ( true ) ;
94
93
EditorGUILayout . EndHorizontal ( ) ;
95
94
You can’t perform that action at this time.
0 commit comments