From 9078b8da323c45d400f46b2683c50fb6a57a37a5 Mon Sep 17 00:00:00 2001 From: DCFApixels <99481254+DCFApixels@users.noreply.github.com> Date: Thu, 20 Mar 2025 10:56:18 +0800 Subject: [PATCH] add [HideInCallstack] for EcsDebug --- src/DebugUtils/EcsDebug.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/DebugUtils/EcsDebug.cs b/src/DebugUtils/EcsDebug.cs index c3fd1ec..d25ffeb 100644 --- a/src/DebugUtils/EcsDebug.cs +++ b/src/DebugUtils/EcsDebug.cs @@ -91,6 +91,9 @@ namespace DCFApixels.DragonECS DebugService.Set(service); } +#if UNITY_2021_3_OR_NEWER + [HideInCallstack] +#endif [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void PrintWarning(object v) { @@ -99,6 +102,9 @@ namespace DCFApixels.DragonECS DebugService.CurrentThreadInstance.PrintWarning(v); #endif } +#if UNITY_2021_3_OR_NEWER + [HideInCallstack] +#endif [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void PrintError(object v) { @@ -107,6 +113,9 @@ namespace DCFApixels.DragonECS DebugService.CurrentThreadInstance.PrintError(v); #endif } +#if UNITY_2021_3_OR_NEWER + [HideInCallstack] +#endif [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void PrintErrorAndBreak(object v) { @@ -115,6 +124,9 @@ namespace DCFApixels.DragonECS DebugService.CurrentThreadInstance.PrintErrorAndBreak(v); #endif } +#if UNITY_2021_3_OR_NEWER + [HideInCallstack] +#endif [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void PrintPass(object v) { @@ -123,6 +135,9 @@ namespace DCFApixels.DragonECS DebugService.CurrentThreadInstance.PrintPass(v); #endif } +#if UNITY_2021_3_OR_NEWER + [HideInCallstack] +#endif [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void Print() { @@ -131,6 +146,9 @@ namespace DCFApixels.DragonECS DebugService.CurrentThreadInstance.Print(); #endif } +#if UNITY_2021_3_OR_NEWER + [HideInCallstack] +#endif [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void Print(object v) { @@ -139,6 +157,9 @@ namespace DCFApixels.DragonECS DebugService.CurrentThreadInstance.Print(v); #endif } +#if UNITY_2021_3_OR_NEWER + [HideInCallstack] +#endif [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void Print(string tag, object v) {