/// <summary> /// Triggers reimport for queued resource. Should be called once per frame. /// </summary> internal static void Update() { Internal_FinalizeImports(); int inProgressImports = InProgressImportCount; if (inProgressImports > 0) { int numRemaining = totalFilesToImport - inProgressImports; float pct = numRemaining / (float)totalFilesToImport; EditorApplication.SetStatusImporting(true, pct); } else { totalFilesToImport = 0; EditorApplication.SetStatusImporting(false, 0.0f); } }