From 1423a3716a88cd48a760ba4ccd5c5a70f38e046b Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Mon, 18 Dec 2023 19:49:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91=E6=89=80=E6=9C=89=E7=83=AD=E6=9B=B4?= =?UTF-8?q?dll=EF=BC=8C=E4=BB=A5=E9=98=B2=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E8=BF=90=E8=A1=8CAB=E6=97=B6=E5=87=BA=E7=8E=B0=E4=B8=A4?= =?UTF-8?q?=E4=BB=BD=E5=85=83=E6=95=B0=E6=8D=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 编辑器模式重定向所有热更dll,以防编辑器运行AB时出现两份元数据。 --- .../Assets/GameScripts/Main/Procedure/ProcedureLoadAssembly.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UnityProject/Assets/GameScripts/Main/Procedure/ProcedureLoadAssembly.cs b/UnityProject/Assets/GameScripts/Main/Procedure/ProcedureLoadAssembly.cs index 2fbc5120..aa99193e 100644 --- a/UnityProject/Assets/GameScripts/Main/Procedure/ProcedureLoadAssembly.cs +++ b/UnityProject/Assets/GameScripts/Main/Procedure/ProcedureLoadAssembly.cs @@ -116,8 +116,7 @@ namespace GameMain { ChangeState(m_procedureOwner); #if UNITY_EDITOR - m_MainLogicAssembly = AppDomain.CurrentDomain.GetAssemblies(). - First(assembly => $"{assembly.GetName().Name}.dll" == SettingsUtils.HybridCLRCustomGlobalSettings.LogicMainDllName); + m_MainLogicAssembly = GetMainLogicAssembly(); #endif if (m_MainLogicAssembly == null) {