This commit is contained in:
2025-09-10 12:44:04 +08:00
parent 10386d7725
commit 86a4b1b8d2
2 changed files with 6 additions and 6 deletions

View File

@@ -30,11 +30,11 @@ namespace Stary.Evo.Editor
[MenuItem(EditorNotMode, true)]
private static bool ValidateModeMenu()
{
string platform = EditorPrefs.GetString("ChangeHotUpdateSchema");
Menu.SetChecked(EditorNotMode, platform == HotUpdateMode.NotUpdate.ToString());
Menu.SetChecked(EditorImmersalMode, platform == HotUpdateMode.HotUpdate.ToString());
string platform = EditorPrefs.GetString("ChangePoindClondSchema");
Menu.SetChecked(EditorNotMode, platform == PointClondMode.NotPointClond.ToString());
Menu.SetChecked(EditorImmersalMode, platform == PointClondMode.Immersal.ToString());
//Menu.SetChecked(WebPlayMode, platform == HotUpdateMode.WEB_PLAYMODE.ToString());
Debug.LogError("ChangeHotUpdateSchema");
Debug.LogError("ChangePoindClondSchema");
return true;
}
@@ -54,7 +54,7 @@ namespace Stary.Evo.Editor
PlayerSettings.SetScriptingDefineSymbolsForGroup(currentTarget, string.Join(";", defines));
Debug.Log($"当前编译符号: {string.Join(";", defines)}"); // 添加调试日志
_pointClondMode = mode;
EditorPrefs.SetString("ChangeHotUpdateSchema", _pointClondMode.ToString());
EditorPrefs.SetString("ChangePoindClondSchema", _pointClondMode.ToString());
ValidateModeMenu();
AssetDatabase.Refresh();