Skip to content

Commit

Permalink
Saves assets at the end of importing.
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Jun 29, 2019
1 parent c9fd725 commit 630f8ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AddressableImporter/Editor/AddressableImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAsse
}
}
if (entriesAdded.Count > 0)
{
settings.SetDirty(AddressableAssetSettings.ModificationEvent.EntryMoved, entriesAdded, true);
AssetDatabase.SaveAssets();
}
}

static AddressableAssetEntry CreateOrUpdateAddressableAssetEntry(AddressableAssetSettings settings, string path, string groupName, IEnumerable<string> labels)
Expand Down

0 comments on commit 630f8ee

Please sign in to comment.