I upload the data (bundles and catalogue files) created by a custom Build script (uses BuildPlayerContent()
) and upload everything to a remote server. Everything works great but if I push updates to the server after an asset has been changed, that change doesn’t reflect on the application.
This bug is reproducible using the following steps:
- Create Addressable Group Bundles and Catalog with required assets (Addressable Tab > Build).
- Upload the Bundles and Catalog to a remote server (Google Cloud Platform in this case).
- Run the application (everything works fine)
- Make a change to one of the assets (change sprite colour etc.).
- Update the Bundles (Addressable Tab > Update Previous Build).
- Upload the updated Bundle and Catalog files to the server.
- Run the application.
Result: The application still shows the old asset.
-
At some point in time, which can be several hours, the asset update might be reflected. The problem also fixes itself immediately if I delete the old bundle. However, in a CI/CD environment, deleting old bundles each time an update happens is not an option.
-
I understand that the old bundle will remain in use but that shouldn’t be the case if a new version of an asset is available.
-
I have tried clearing the cache (
Caching.ClearCache()
) but that doesn’t work.