# RuntimeManager.HasLoadBank() with AssetReference

**URL:** <https://qa.fmod.com/t/runtimemanager-hasloadbank-with-assetreference/19483>\
**Category:** Unity\
**Created:** [November 6, 2022, 2:15pm UTC](https://qa.fmod.com/t/runtimemanager-hasloadbank-with-assetreference/19483 "2022-11-06T14:15:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![giresharu](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/giresharu/32/4145_2.png) [@giresharu](https://qa.fmod.com/u/giresharu)\
**Post date:** [November 6, 2022, 2:15pm UTC](https://qa.fmod.com/t/runtimemanager-hasloadbank-with-assetreference/19483/1 "2022-11-06T14:15:35Z")

</div>

It seems like RuntimeManager’s property loadedBanks use AssetReference’s guid as dictionary’s key. So we can’t check hasLoadBank() with bank’s name.  
Are there any better way to check loaded by bank’s name?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [November 7, 2022, 4:22am UTC](https://qa.fmod.com/t/runtimemanager-hasloadbank-with-assetreference/19483/2 "2022-11-07T04:22:02Z")

</div>

Hi,

The `hasBankLoaded()` function uses strings to check if the bank has loaded.

```auto
FMODUnity.RuntimeManager.HasBankLoaded("bank:/ Master"); 

```

I will link the [Unity Integration | Scripting API](https://fmod.com/docs/2.02/unity/api-runtimemanager.html#hasbankloaded) which has other useful functions. Is this what you were looking for?

---

<div class="post-metadata">

**Author:** ![giresharu](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/giresharu/32/4145_2.png) [@giresharu](https://qa.fmod.com/u/giresharu)\
**Post date:** [November 7, 2022, 7:47am UTC](https://qa.fmod.com/t/runtimemanager-hasloadbank-with-assetreference/19483/3 "2022-11-07T07:47:44Z")

</div>

😢 Sorry,nope.  
RuntimeManager.HasBankLoaded can’t use bank’s name when the bank loaded by AssetReference.  
It should be like this :

```auto
FMODUnity.RuntimeManager.HasBankLoaded( "92184a9598bd7b94ca45541e643b0bd3" );

```

or

```auto
FMODUnity.RuntimeManager.HasBankLoaded( bankAssetReference.AssetGUID );

```

It will be a problem when I want to check a bank’s load status: I should add a bank AssetReference property for every script which want to check the bank’s load status. Or I should remenber the GUID of it. So pain for me 😢

I use LoadBank(TextAsset) now, it can check by bank’s name.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [November 9, 2022, 3:35am UTC](https://qa.fmod.com/t/runtimemanager-hasloadbank-with-assetreference/19483/4 "2022-11-09T03:35:04Z")

</div>

Hi,

Apologies, I missed the AssetReference.

Using AssetReferences will change the names of the banks in the FMOD system. They will have the same names as the text files in the FMOD Banks folder inside Unity e.g. “Master” or “Master.strings”. So to check if a bank has loaded using its name pass in the same names as your files.

```auto
FMODUnity.RuntimeManager.HasBankLoaded("Master");

```

Apologies again.
