feat: 开发模式

This commit is contained in:
2026-07-20 14:29:47 +08:00
parent cb255f8ca5
commit d10dfc1892
36 changed files with 19782 additions and 2667 deletions
@@ -0,0 +1,21 @@
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
}
}
}
}