mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-11-12 09:35:55 +08:00
add DISABLE_DEBUG
This commit is contained in:
parent
ca06523776
commit
2c376088a7
@ -1,4 +1,7 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
@ -50,6 +53,12 @@ namespace DCFApixels.DebugXCore
|
||||
{
|
||||
public static class DebugXDefines
|
||||
{
|
||||
public const bool DISABLE_DEBUG =
|
||||
#if DISABLE_DEBUG
|
||||
true;
|
||||
#else
|
||||
false;
|
||||
#endif
|
||||
public const bool DEBUGX_DISABLE_INBUILD =
|
||||
#if DEBUGX_DISABLE_INBUILD
|
||||
true;
|
||||
|
||||
@ -1,8 +1,12 @@
|
||||
//#undef DEBUG
|
||||
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
#if DEBUG
|
||||
#define DEV_MODE
|
||||
#endif
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
using System;
|
||||
using DCFApixels.DebugXCore;
|
||||
using System.Collections.Generic;
|
||||
@ -13,9 +17,6 @@ using UnityEngine.PlayerLoop;
|
||||
using Unity.Collections.LowLevel.Unsafe;
|
||||
using DCFApixels.DebugXCore.Internal;
|
||||
using System.Linq;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
namespace DCFApixels
|
||||
{
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
using UnityEngine;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
using UnityEngine;
|
||||
|
||||
namespace DCFApixels
|
||||
{
|
||||
|
||||
@ -1,9 +1,14 @@
|
||||
using DCFApixels.DebugXCore;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
using DCFApixels.DebugXCore;
|
||||
using DCFApixels.DebugXCore.Internal;
|
||||
using System.Runtime.InteropServices;
|
||||
using Unity.Collections.LowLevel.Unsafe;
|
||||
using Unity.Jobs;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
using DCFApixels.DebugXCore;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
using DCFApixels.DebugXCore;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DCFApixels
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
using DCFApixels.DebugXCore;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
using DCFApixels.DebugXCore;
|
||||
using DCFApixels.DebugXCore.Internal;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
using DCFApixels.DebugXCore;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
using DCFApixels.DebugXCore;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
namespace DCFApixels
|
||||
{
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
using DCFApixels.DebugXCore;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
using DCFApixels.DebugXCore;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
using DCFApixels.DebugXCore.Internal;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
using DCFApixels.DebugXCore.Internal;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DCFApixels
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
using UnityEngine;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
using UnityEngine;
|
||||
|
||||
namespace DCFApixels
|
||||
{
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DCFApixels
|
||||
|
||||
@ -1,10 +1,13 @@
|
||||
using DCFApixels.DebugXCore;
|
||||
using System.Runtime.CompilerServices;
|
||||
//#if UNITY_EDITOR
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
using DCFApixels.DebugXCore;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
//#endif
|
||||
|
||||
namespace DCFApixels
|
||||
{
|
||||
|
||||
@ -1,11 +1,14 @@
|
||||
using System;
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
namespace DCFApixels.DebugXCore
|
||||
{
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#undef DEBUG
|
||||
|
||||
#if DISABLE_DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
#if DEBUG
|
||||
#define DEV_MODE
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user