Define.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. namespace ET
  2. {
  3. public static class Define
  4. {
  5. /// <summary>
  6. /// 编辑器下加载热更dll的目录
  7. /// </summary>
  8. public const string CodeDir = "Assets/Bundles/Code";
  9. /// <summary>
  10. /// VS或Rider工程生成dll的所在目录, 使用HybridCLR打包时需要使用
  11. /// </summary>
  12. public const string BuildOutputDir = "Temp/Bin/Debug";
  13. #if DEBUG
  14. public static bool IsDebug = true;
  15. #else
  16. public static bool IsDebug = false;
  17. #endif
  18. #if UNITY_EDITOR && !ASYNC
  19. public static bool IsAsync = false;
  20. #else
  21. public static bool IsAsync = true;
  22. #endif
  23. #if UNITY_EDITOR
  24. public static bool IsEditor = true;
  25. #else
  26. public static bool IsEditor = false;
  27. #endif
  28. #if ENABLE_VIEW
  29. public static bool EnableView = true;
  30. #else
  31. public static bool EnableView = false;
  32. #endif
  33. #if ENABLE_IL2CPP
  34. public static bool EnableIL2CPP = true;
  35. #else
  36. public static bool EnableIL2CPP = false;
  37. #endif
  38. }
  39. }