Skip to content

Commit

Permalink
fix: constantly warn about missing settings (close: #40)
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Aug 17, 2020
1 parent 88b2c2b commit d8d7975
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Editor/AddressableImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAsse
var settings = AddressableAssetSettingsDefaultObject.Settings;
if (settings == null)
{
Debug.LogWarningFormat("[Addressables] settings file not found.\nPlease go to Menu/Window/Asset Management/Addressables, then click 'Create Addressables Settings' button.");
if (!EditorApplication.isUpdating && !EditorApplication.isCompiling)
{
Debug.LogWarningFormat("[Addressables] settings file not found.\nPlease go to Menu/Window/Asset Management/Addressables, then click 'Create Addressables Settings' button.");
}
return;
}
var importSettings = AddressableImportSettings.Instance;
Expand Down

0 comments on commit d8d7975

Please sign in to comment.