Files
aibis-dream/Assets/Scripts/Utility/DeveloperModeGate.cs
T
2026-07-20 14:29:47 +08:00

22 lines
530 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
}
}
}
}