[fix] CompileDll后主动关闭进度条,临时解决Unity 2022版本Editor的bug
parent
7d58454fdd
commit
10684d29cd
|
@ -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!!!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue