Skip to content

Commit

Permalink
chore(docs): add comment for #65
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang authored Dec 25, 2022
1 parent 793e1b8 commit e071de6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Editor/AddressableImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ static AddressableAssetEntry CreateOrUpdateAddressableAssetEntry(
// Set group settings from template if necessary
if (rule.groupTemplate != null && (newGroup || rule.groupTemplateApplicationMode ==
GroupTemplateApplicationMode.AlwaysOverwriteGroupSettings)) {
// Due to ApplyToAddressableAssetGroup only applies schema values for the group to the schema
// values found in the source template, all schema objects of the source template should be
// manually added to the target group before run the ApplyToAddressableAssetGroup function.
// See more in https://github.com/favoyang/unity-addressable-importer/pull/65
var templateSchema = rule.groupTemplate.SchemaObjects;
foreach (var schema in templateSchema.Where(schema => !group.HasSchema(schema.GetType())))
{
Expand Down

0 comments on commit e071de6

Please sign in to comment.