[fix] CompileDll后主动关闭进度条,临时解决Unity 2022版本Editor的bug

main
walon 2023-06-06 11:28:27 +08:00
parent 7d58454fdd
commit 10684d29cd
1 changed files with 3 additions and 4 deletions

View File

@ -25,10 +25,9 @@ namespace HybridCLR.Editor.Commands
} }
Directory.CreateDirectory(buildDir); Directory.CreateDirectory(buildDir);
ScriptCompilationResult scriptCompilationResult = PlayerBuildInterface.CompilePlayerScripts(scriptCompilationSettings, buildDir); ScriptCompilationResult scriptCompilationResult = PlayerBuildInterface.CompilePlayerScripts(scriptCompilationSettings, buildDir);
foreach (var ass in scriptCompilationResult.assemblies) #if UNITY_2022
{ UnityEditor.EditorUtility.ClearProgressBar();
//Debug.LogFormat("compile assemblies:{1}/{0}", ass, buildDir); #endif
}
Debug.Log("compile finish!!!"); Debug.Log("compile finish!!!");
} }