22 lines
530 B
C#
22 lines
530 B
C#
namespace AibisDream.Utility
|
||
{
|
||
/// <summary>
|
||
/// 统一控制运行时开发工具的可用范围。类型始终存在,避免 Release 场景出现 Missing Script;
|
||
/// 但 Release 构建中的值会在编译期固定为 false。
|
||
/// </summary>
|
||
public static class DeveloperModeGate
|
||
{
|
||
public static bool IsEnabled
|
||
{
|
||
get
|
||
{
|
||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||
return true;
|
||
#else
|
||
return false;
|
||
#endif
|
||
}
|
||
}
|
||
}
|
||
}
|