From 815095efaf1612ea695364c6310dcaa3859a26a0 Mon Sep 17 00:00:00 2001 From: chengshengfei Date: Fri, 17 May 2024 15:45:06 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E7=A7=BB=E9=99=A4=20`BuildDLLCommand`?= =?UTF-8?q?=20=E6=9E=84=E9=80=A0=E5=87=BD=E6=95=B0=E4=BB=A5=E5=B0=9D?= =?UTF-8?q?=E8=AF=95=E8=A7=A3=E5=86=B3=E6=95=B0=E7=BB=84=E8=A2=AB=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Editor/EventInterface/EventInterfaceGenerate.cs | 1 - .../Assets/TEngine/Editor/HybridCLR/BuildDLLCommand.cs | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/UnityProject/Assets/TEngine/Editor/EventInterface/EventInterfaceGenerate.cs b/UnityProject/Assets/TEngine/Editor/EventInterface/EventInterfaceGenerate.cs index 2ebbbb1c..0506832a 100644 --- a/UnityProject/Assets/TEngine/Editor/EventInterface/EventInterfaceGenerate.cs +++ b/UnityProject/Assets/TEngine/Editor/EventInterface/EventInterfaceGenerate.cs @@ -93,7 +93,6 @@ public static class EventInterfaceGenerate } } - EditorUtility.SetDirty(HybridCLRSettings.Instance); AssetDatabase.Refresh(); Debug.Log("Generate EventInterface Complete"); // EditorUtility.DisplayDialog("提示", "代码生成完毕", "OK"); diff --git a/UnityProject/Assets/TEngine/Editor/HybridCLR/BuildDLLCommand.cs b/UnityProject/Assets/TEngine/Editor/HybridCLR/BuildDLLCommand.cs index dd2ea41f..6ad5d3e6 100644 --- a/UnityProject/Assets/TEngine/Editor/HybridCLR/BuildDLLCommand.cs +++ b/UnityProject/Assets/TEngine/Editor/HybridCLR/BuildDLLCommand.cs @@ -6,19 +6,9 @@ using TEngine.Editor; using UnityEditor; using UnityEngine; -[InitializeOnLoad] public static class BuildDLLCommand { private const string EnableHybridClrScriptingDefineSymbol = "ENABLE_HYBRIDCLR"; - - static BuildDLLCommand() - { -#if ENABLE_HYBRIDCLR - HybridCLR.Editor.SettingsUtil.Enable = true; -#else - HybridCLR.Editor.SettingsUtil.Enable = false; -#endif - } /// /// 禁用HybridCLR宏定义。