45 lines
1.0 KiB
C#
45 lines
1.0 KiB
C#
namespace Unity.Loader
|
|
{
|
|
public static class Define
|
|
{
|
|
/// <summary>
|
|
/// 编辑器下加载热更dll的目录
|
|
/// </summary>
|
|
public const string CodeDir = "Assets/Bundles/Code";
|
|
|
|
/// <summary>
|
|
/// VS或Rider工程生成dll的所在目录, 使用HybridCLR打包时需要使用
|
|
/// </summary>
|
|
public const string BuildOutputDir = "Temp/Bin/Debug";
|
|
|
|
#if DEBUG
|
|
public static bool IsDebug = true;
|
|
#else
|
|
public static bool IsDebug = false;
|
|
#endif
|
|
|
|
#if UNITY_EDITOR && !ASYNC
|
|
public static bool IsAsync = false;
|
|
#else
|
|
public static bool IsAsync = true;
|
|
#endif
|
|
|
|
#if UNITY_EDITOR
|
|
public static bool IsEditor = true;
|
|
#else
|
|
public static bool IsEditor = false;
|
|
#endif
|
|
|
|
#if ENABLE_VIEW
|
|
public static bool EnableView = true;
|
|
#else
|
|
public static bool EnableView = false;
|
|
#endif
|
|
|
|
#if ENABLE_IL2CPP
|
|
public static bool EnableIL2CPP = true;
|
|
#else
|
|
public static bool EnableIL2CPP = false;
|
|
#endif
|
|
}
|
|
} |