Hello,
I need to have another AddressableAssetsSettings, so we can manage asset build without any changes in git repository. We need to keep the default settings at Assets/AddressableAssetsData/AddressableAssetsSettings.asset, for some another issue.
Our asset build script basically do the followings;
- create AddressableAssetSettings asset at Assets/AddressableAssetsData/Build/AddressableAssetSettings.asset
- create Asset group via CreateGroup API for the instance above settings.
While adding a new group, AddressableAssetSettings class always add the group in OnPostprocessAllAssets method. Since all AddressableAssetSettings instances do the same, another settings assets have same group unexpectedly.
If there are two settings asset at
Assets/AddressableAssetsData/AddressableAssetSettings.asset
and
Assets/AddressableAssetsData/Build/AddressableAssetSettings.asset
both would have newly created groups in it.
When I just add one condition as below at line 2719 of Addressable v2.2.2, other settings won’t have group for the specific settings.
if (typeof(AddressableAssetGroup).IsAssignableFrom(assetType) && str.StartsWith(GroupFolder))
If I am doing wrong approach, let me know how to manage two settings without sharing asset group.
Thanks!