Skip to content

Commit

Permalink
feat(UnityIntegration): show progress when weaving all assemblies
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Marcel Böddecker committed Jan 7, 2019
1 parent b87448b commit 2f1bb4c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Sources/FodyRunner.UnityIntegration/EditorWeaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@ private static void ManuallyWeaveAllAssemblies()

private static void WeaveAllAssemblies()
{
foreach (Assembly assembly in GetAllAssemblies())
List<Assembly> assemblies = GetAllAssemblies().ToList();
for (int index = 0; index < assemblies.Count; index++)
{
Assembly assembly = assemblies[index];
EditorUtility.DisplayProgressBar(
nameof(Malimbe),
$"Weaving '{assembly.name}'.",
(float)index / assemblies.Count);
WeaveAssembly(assembly);
}

EditorUtility.ClearProgressBar();
}

private static void OnCompilationFinished(string path, CompilerMessage[] messages)
Expand Down

0 comments on commit 2f1bb4c

Please sign in to comment.