[new] PathScriptingAssembilesFile 支持WebGL平台
parent
687366cd82
commit
4f64ea1c6c
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue