# Unity Import Type - Bug?

**URL:** https://qa.fmod.com/t/unity-import-type-bug/17369
**Category:** Unity
**Created:** [June 19, 2021, 8:40pm UTC](https://qa.fmod.com/t/unity-import-type-bug/17369 "2021-06-19T20:40:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)
#### Post date: [June 19, 2021, 8:40pm UTC](https://qa.fmod.com/t/unity-import-type-bug/17369/1 "2021-06-19T20:40:08Z")

</div>

I just noticed that my streaming assets folder isn’t being updated. I looked at the EventManager code and saw this:

```auto
#if UNITY_EDITOR
        [MenuItem("FMOD/Refresh Banks", priority = 1)]
        public static void RefreshBanks()
        {
            string result = UpdateCache();
            OnCacheChange();
            if (Settings.Instance.ImportType == ImportType.AssetBundle)
            {
                CopyToStreamingAssets();
            }

            BankRefresher.HandleBankRefresh(result);
        }
#endif

```

Shouldn’t that be:

```auto
            if (Settings.Instance.ImportType == ImportType.StreamingAssets)

```

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [June 21, 2021, 1:48am UTC](https://qa.fmod.com/t/unity-import-type-bug/17369/2 "2021-06-21T01:48:27Z")

</div>

The Unity editor read from the Bank source directory to facilitate playback, so we only copy to streaming assets when doing a stand alone build of the game. Additionally we also copy the assets for AssetBundles to facilitate mapping them within the editor (this will be changing with our next release however).

---

<div class="post-metadata">

### Author: ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)
#### Post date: [June 21, 2021, 7:43pm UTC](https://qa.fmod.com/t/unity-import-type-bug/17369/3 "2021-06-21T19:43:14Z")

</div>

Ahhh OK, thanks for explaining that! I was debugging something else and came across this and it made my scratch my head. Sorry to bother you, and thanks!
