Skip to content

Commit 1e6960c

Browse files
committed
feat: Enabling verbose logging will log the tilemap refresh notification that occurs after importing a tileset file
1 parent f8e2a66 commit 1e6960c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Assets/LDtkUnity/Editor/Utility/LDtkTilemapColliderReset.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using UnityEditor;
44
using UnityEngine;
55
using UnityEngine.Tilemaps;
6+
using Debug = UnityEngine.Debug;
67

78
namespace LDtkUnity.Editor
89
{
@@ -61,7 +62,12 @@ public static void TilemapColliderTileUpdate()
6162
if (view != null && affected > 0)
6263
{
6364
float seconds = watch.ElapsedMilliseconds * 0.001f;
64-
view.ShowNotification(new GUIContent($"Refreshed LDtk scene tilemaps\n({affected} in {seconds:F2}s)"), 2.5f);
65+
string msg = $"Refreshed LDtk scene tilemaps\n({affected} in {seconds:F2}s)";
66+
view.ShowNotification(new GUIContent(msg), 2.5f);
67+
if (LDtkPrefs.VerboseLogging)
68+
{
69+
Debug.Log(msg);
70+
}
6571
}
6672
};
6773
}

0 commit comments

Comments
 (0)