From 2f71bb515de8a2b5a00f8788ddcce16fe9a07591 Mon Sep 17 00:00:00 2001 From: walon Date: Tue, 27 Jun 2023 08:58:08 +0800 Subject: [PATCH] =?UTF-8?q?[change]=20=E8=B0=83=E6=95=B4CompileDll=20Scrip?= =?UTF-8?q?tCompilationSettings=E8=AE=BE=E7=BD=AE=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/Commands/CompileDllCommand.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Editor/Commands/CompileDllCommand.cs b/Editor/Commands/CompileDllCommand.cs index 06222c1..a26b97d 100644 --- a/Editor/Commands/CompileDllCommand.cs +++ b/Editor/Commands/CompileDllCommand.cs @@ -19,10 +19,7 @@ namespace HybridCLR.Editor.Commands ScriptCompilationSettings scriptCompilationSettings = new ScriptCompilationSettings(); scriptCompilationSettings.group = group; scriptCompilationSettings.target = target; - if (developmentBuild) - { - scriptCompilationSettings.options |= ScriptCompilationOptions.DevelopmentBuild; - } + scriptCompilationSettings.options = developmentBuild ? ScriptCompilationOptions.DevelopmentBuild : ScriptCompilationOptions.None; Directory.CreateDirectory(buildDir); ScriptCompilationResult scriptCompilationResult = PlayerBuildInterface.CompilePlayerScripts(scriptCompilationSettings, buildDir); #if UNITY_2022