File tree 1 file changed +5
-4
lines changed
Assets/Scripts/Editor/Tools 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,10 @@ void OnGUI()
69
69
}
70
70
71
71
// display stats
72
- EditorGUILayout . LabelField ( "Meshes: " + totalMeshes ) ;
73
- EditorGUILayout . LabelField ( "Vertices: " + totalVertices ) ;
74
- EditorGUILayout . LabelField ( "Triangles: " + totalTris ) ;
72
+ // String.Format("{0:n0}", 9876); // No digits after the decimal point. Output: 9,876
73
+ EditorGUILayout . LabelField ( "Meshes: " + $ "{ totalMeshes : n0} ") ;
74
+ EditorGUILayout . LabelField ( "Vertices: " + $ "{ totalVertices : n0} ") ;
75
+ EditorGUILayout . LabelField ( "Triangles: " + $ "{ totalTris : n0} ") ;
75
76
EditorGUILayout . Space ( ) ;
76
77
EditorGUILayout . LabelField ( "TOP 20" , EditorStyles . boldLabel ) ;
77
78
@@ -88,7 +89,7 @@ void OnGUI()
88
89
{
89
90
EditorGUIUtility . PingObject ( meshes [ item . Key ] . transform ) ;
90
91
}
91
- EditorGUILayout . LabelField ( meshes [ item . Key ] . name + " = " + item . Value + " (" + percent + "%)" ) ;
92
+ EditorGUILayout . LabelField ( meshes [ item . Key ] . name + " = " + $ " { item . Value : n0 } " + " (" + percent + "%)" ) ;
92
93
GUILayout . ExpandWidth ( true ) ;
93
94
EditorGUILayout . EndHorizontal ( ) ;
94
95
You can’t perform that action at this time.
0 commit comments