[new] PathScriptingAssembilesFile 支持WebGL平台
parent
687366cd82
commit
4f64ea1c6c
|
@ -21,6 +21,9 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
IPostGenerateGradleAndroidProject,
|
IPostGenerateGradleAndroidProject,
|
||||||
#endif
|
#endif
|
||||||
IPostprocessBuildWithReport
|
IPostprocessBuildWithReport
|
||||||
|
#if !UNITY_2021_1_OR_NEWER && UNITY_WEBGL
|
||||||
|
, IIl2CppProcessor
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
public int callbackOrder => 0;
|
public int callbackOrder => 0;
|
||||||
|
|
||||||
|
@ -43,7 +46,7 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
{
|
{
|
||||||
// 如果target为Android,由于已经在OnPostGenerateGradelAndroidProject中处理过,
|
// 如果target为Android,由于已经在OnPostGenerateGradelAndroidProject中处理过,
|
||||||
// 这里不再重复处理
|
// 这里不再重复处理
|
||||||
#if !UNITY_ANDROID
|
#if !UNITY_ANDROID && !UNITY_WEBGL
|
||||||
|
|
||||||
PathScriptingAssembilesFile(report.summary.outputPath);
|
PathScriptingAssembilesFile(report.summary.outputPath);
|
||||||
#endif
|
#endif
|
||||||
|
@ -144,5 +147,12 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
}
|
}
|
||||||
return true;
|
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",
|
"name": "com.focus-creative-games.hybridclr_unity",
|
||||||
"version": "0.7.2",
|
"version": "0.7.3",
|
||||||
"displayName": "HybridCLR",
|
"displayName": "HybridCLR",
|
||||||
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
|
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
|
||||||
"category": "Runtime",
|
"category": "Runtime",
|
||||||
|
|
Loading…
Reference in New Issue