diff --git a/Editor/BuildProcessors/CheckSettings.cs b/Editor/BuildProcessors/CheckSettings.cs index 2c181c2..76d0a88 100644 --- a/Editor/BuildProcessors/CheckSettings.cs +++ b/Editor/BuildProcessors/CheckSettings.cs @@ -15,8 +15,9 @@ namespace HybridCLR.Editor.BuildProcessors public void OnPreprocessBuild(BuildReport report) { + HybridCLRGlobalSettings globalSettings = SettingsUtil.GlobalSettings; #if !UNITY_2020_1_OR_NEWER || !UNITY_IOS - if (!SettingsUtil.Enable) + if (!globalSettings.enable || globalSettings.useGlobalIl2Cpp) { string oldIl2cppPath = Environment.GetEnvironmentVariable("UNITY_IL2CPP_PATH"); if (!string.IsNullOrEmpty(oldIl2cppPath)) @@ -35,7 +36,7 @@ namespace HybridCLR.Editor.BuildProcessors } } #endif - if (!SettingsUtil.Enable) + if (!globalSettings.enable) { return; } diff --git a/package.json b/package.json index 4a025ba..0268fd9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.focus-creative-games.hybridclr_unity", - "version": "0.3.6", + "version": "0.3.7", "displayName": "HybridCLR", "description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR", "category": "Runtime",