Skip to content

Commit

Permalink
feat: added a setting to disable the progress bar on import. (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
takanori authored Dec 25, 2022
1 parent f3be847 commit 5b4dff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Editor/AddressableImportSettingsList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class AddressableImportSettingsList : ScriptableObject
public const string kDefaultPath = "Assets/AddressableAssetsData/AddressableImportSettingsList.asset";
public List<AddressableImportSettings> SettingList;
public List<AddressableImportSettings> EnabledSettingsList => SettingList.Where((s) => s?.rulesEnabled == true).ToList();
public bool ShowImportProgressBar = true;

public static AddressableImportSettingsList Instance
{
Expand Down
2 changes: 1 addition & 1 deletion Editor/AddressableImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAsse
if (IsAssetIgnored(importedAsset))
continue;

if (EditorUtility.DisplayCancelableProgressBar(
if (importSettingsList.ShowImportProgressBar && EditorUtility.DisplayCancelableProgressBar(
"Processing addressable import settings", $"[{i}/{importedAssets.Length}] {importedAsset}",
(float) i / importedAssets.Length))
break;
Expand Down

0 comments on commit 5b4dff0

Please sign in to comment.