From 4f64ea1c6c13ae64abc2f5900b108504321e362c Mon Sep 17 00:00:00 2001 From: walon Date: Wed, 19 Oct 2022 14:20:17 +0800 Subject: [PATCH] =?UTF-8?q?[new]=20PathScriptingAssembilesFile=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81WebGL=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/BuildProcessors/PatchScriptingAssemblyList.cs | 12 +++++++++++- package.json | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Editor/BuildProcessors/PatchScriptingAssemblyList.cs b/Editor/BuildProcessors/PatchScriptingAssemblyList.cs index 8b7d59a..814391c 100644 --- a/Editor/BuildProcessors/PatchScriptingAssemblyList.cs +++ b/Editor/BuildProcessors/PatchScriptingAssemblyList.cs @@ -21,6 +21,9 @@ namespace HybridCLR.Editor.BuildProcessors IPostGenerateGradleAndroidProject, #endif IPostprocessBuildWithReport +#if !UNITY_2021_1_OR_NEWER && UNITY_WEBGL + , IIl2CppProcessor +#endif { public int callbackOrder => 0; @@ -43,7 +46,7 @@ namespace HybridCLR.Editor.BuildProcessors { // 如果target为Android,由于已经在OnPostGenerateGradelAndroidProject中处理过, // 这里不再重复处理 -#if !UNITY_ANDROID +#if !UNITY_ANDROID && !UNITY_WEBGL PathScriptingAssembilesFile(report.summary.outputPath); #endif @@ -144,5 +147,12 @@ namespace HybridCLR.Editor.BuildProcessors } return true; } + +#if UNITY_WEBGL + public void OnBeforeConvertRun(BuildReport report, Il2CppBuildPipelineData data) + { + PathScriptingAssembilesFile($"{SettingsUtil.ProjectDir}/Temp/StagingArea/Data"); + } +#endif } } diff --git a/package.json b/package.json index 825038d..0e67720 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.focus-creative-games.hybridclr_unity", - "version": "0.7.2", + "version": "0.7.3", "displayName": "HybridCLR", "description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR", "category": "Runtime",