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