# Bank changes are ignored in Addressables Content Update

**URL:** <https://qa.fmod.com/t/bank-changes-are-ignored-in-addressables-content-update/21386>\
**Category:** Unity\
**Created:** [March 20, 2024, 5:46am UTC](https://qa.fmod.com/t/bank-changes-are-ignored-in-addressables-content-update/21386 "2024-03-20T05:46:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jungsoo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@jungsoo](https://qa.fmod.com/u/jungsoo)\
**Post date:** [March 20, 2024, 5:46am UTC](https://qa.fmod.com/t/bank-changes-are-ignored-in-addressables-content-update/21386/1 "2024-03-20T05:46:59Z")

</div>

When using Addressables with FMOD for Unity, there is a feature that automatically executes `EventManager.CopyToStreamingAssets` and `EventManager.UpdateBankStubAssets` using Scriptable Build Pipeline PostDependencyCallback and PostWritingCallback. However, this causes issues when utilizing Addressables’ Content Update feature.

To use the Content Update feature, the hash values of all individual entries going into Addressables are recorded in the `addressables_content_state.bin` file. However, referring to the [BuildScriptPackedMode.cs](https://github.com/needle-mirror/com.unity.addressables/blob/master/Editor/Build/DataBuilders/BuildScriptPackedMode.cs) script, the action of recording hash values occurs **after** the AssetBundle build. After the AssetBundle build is complete, FMOD automatically calls `EventManager.UpdateBankStubAssets` through PostWritingCallback. As a result, the hashes recorded in the `addressables_content_state.bin` file are all hashes of Stub Assets. Therefore, it becomes impossible to record the hash value of the FMOD Bank, and any changes to the FMOD Bank are omitted from all content updates.

To address this issue most simply, it would be preferable to make the automatic functionalities of EventManager.CopyToStreamingAssets and EventManager.UpdateBankStubAssets using Scriptable Build Pipeline optional. Currently, when using Addressables and FMOD simultaneously while trying to utilize the Content Update feature, it is inconvenient as it requires modifying scripts within FMOD for Unity.

---

<div class="post-metadata">

**Author:** ![Andrew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/andrew/32/261_2.png) [@Andrew](https://qa.fmod.com/u/Andrew)\
**Post date:** [March 21, 2024, 3:15am UTC](https://qa.fmod.com/t/bank-changes-are-ignored-in-addressables-content-update/21386/2 "2024-03-21T03:15:01Z")

</div>

Thanks for the detailed description. We’ll investigate this issue and get back to you shortly.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [March 27, 2024, 4:22am UTC](https://qa.fmod.com/t/bank-changes-are-ignored-in-addressables-content-update/21386/3 "2024-03-27T04:22:17Z")

</div>

As Andrew said, thanks for the detailed post.

This does appear to be a valid issue and I have created a task to investigate the best solution for a future update.
