add [HideInCallstack] for EcsDebug

This commit is contained in:
DCFApixels 2025-03-20 10:56:18 +08:00
parent 6865955a56
commit 9078b8da32

View File

@ -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)
{