static IEnumerator UpdateRoutine(CustomAsyncOperation asyncOperation, string title) { while (!asyncOperation.isDone) { EditorUtility.DisplayProgressBar(title, asyncOperation.message, asyncOperation.progress); yield return(null); } EditorUtility.ClearProgressBar(); }
public static void DisplayProgressBar(CustomAsyncOperation asyncOperation, string title = "Loading...") { EditorCoroutine.StartCoroutine(UpdateRoutine(asyncOperation, title)); }