File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Assets/LDtkUnity/Editor/Utility Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1- using System . Diagnostics ;
1+ using System ;
2+ using System . Diagnostics ;
23using System . Linq ;
34using UnityEditor ;
45using UnityEngine ;
@@ -57,17 +58,19 @@ public static void TilemapColliderTileUpdate()
5758 }
5859 }
5960 watch . Stop ( ) ;
60-
61+
62+ float seconds = watch . ElapsedMilliseconds * 0.001f ;
6163 SceneView view = SceneView . lastActiveSceneView ;
62- if ( view != null && affected > 0 )
64+ string msg = $ "Refreshed LDtk scene tilemaps\n ({ affected } in { seconds : F2} s)";
65+
66+ if ( view != null )
6367 {
64- float seconds = watch . ElapsedMilliseconds * 0.001f ;
65- string msg = $ "Refreshed LDtk scene tilemaps\n ({ affected } in { seconds : F2} s)";
6668 view . ShowNotification ( new GUIContent ( msg ) , 2.5f ) ;
67- if ( LDtkPrefs . VerboseLogging )
68- {
69- Debug . Log ( msg ) ;
70- }
69+ }
70+
71+ if ( LDtkPrefs . VerboseLogging )
72+ {
73+ LDtkDebug . Log ( msg ) ;
7174 }
7275 } ;
7376 }
You can’t perform that action at this time.
0 commit comments