Open3
UnityのAddressablesのダウンロード先URLをビルド時に切り替えたい
IPreprocessBuildWithReportでRemoteLoadPathを書き換えるアプローチを試したがうまくいかない
var settings = AddressableAssetSettingsDefaultObject.Settings;
settings.profileSettings.SetValue(settings.activeProfileId, AddressableAssetSettings.kRemoteLoadPath, "***");
ビルド時のエディターログを見るとOnPreprocessBuild
が呼ばれるタイミングでは、すでにAddressablesのビルドがおわっているためだと思われる
なので再度ビルドすると反映される
Cloud Buildで使用したいので、ほかの方法を考える
InternalIdTransformFunc
という仕組みを使うのがいいみたい