From 1e6960ccfeee2f88b05e8bc2a2fa95c27039e9d1 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 20 Nov 2024 23:41:35 -0800 Subject: [PATCH] feat: Enabling verbose logging will log the tilemap refresh notification that occurs after importing a tileset file --- .../LDtkUnity/Editor/Utility/LDtkTilemapColliderReset.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Assets/LDtkUnity/Editor/Utility/LDtkTilemapColliderReset.cs b/Assets/LDtkUnity/Editor/Utility/LDtkTilemapColliderReset.cs index 5297e6977..a140c244a 100644 --- a/Assets/LDtkUnity/Editor/Utility/LDtkTilemapColliderReset.cs +++ b/Assets/LDtkUnity/Editor/Utility/LDtkTilemapColliderReset.cs @@ -3,6 +3,7 @@ using UnityEditor; using UnityEngine; using UnityEngine.Tilemaps; +using Debug = UnityEngine.Debug; namespace LDtkUnity.Editor { @@ -61,7 +62,12 @@ public static void TilemapColliderTileUpdate() if (view != null && affected > 0) { float seconds = watch.ElapsedMilliseconds * 0.001f; - view.ShowNotification(new GUIContent($"Refreshed LDtk scene tilemaps\n({affected} in {seconds:F2}s)"), 2.5f); + string msg = $"Refreshed LDtk scene tilemaps\n({affected} in {seconds:F2}s)"; + view.ShowNotification(new GUIContent(msg), 2.5f); + if (LDtkPrefs.VerboseLogging) + { + Debug.Log(msg); + } } }; }