[new] 支持hybridclr安装到全局位置,但仍然需要自己复制文件。

main
walon 2022-10-09 16:13:23 +08:00
parent 85fcd0481a
commit 7fea92cc75
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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",