Skip to content

Commit

Permalink
feat: Enabling verbose logging will log the tilemap refresh notificat…
Browse files Browse the repository at this point in the history
…ion that occurs after importing a tileset file
  • Loading branch information
Cammin committed Nov 21, 2024
1 parent f8e2a66 commit 1e6960c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Assets/LDtkUnity/Editor/Utility/LDtkTilemapColliderReset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using UnityEditor;
using UnityEngine;
using UnityEngine.Tilemaps;
using Debug = UnityEngine.Debug;

namespace LDtkUnity.Editor
{
Expand Down Expand Up @@ -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);
}
}
};
}
Expand Down

0 comments on commit 1e6960c

Please sign in to comment.