Hi,
I used this script https://fmod.com/docs/2.03/unity/examples-async-loading.html to load the bank as an assetreference, but I get an error. What file should I assign to public List AssetReferenceBanks
?
I currently assign Master.bank
file, which the system recognizes as a TextAsset.
My FMOD Settings is as such
- FMOD version = 2.03
- Source Type = Single Platform Build (desktop game only)
- Build Path = Assets/FMOD_Build/Desktop
- Import Type = Streaming Asset
- FMOD Bank Sub Folder = (blank, don’t know what’s this)
- Event Linkage = GUID
- Serialize GUID Only = unchecked (don’t know what’s this)
- Load Banks = None (I want to load manually in loading screen)
```
UnityEngine.AddressableAssets.InvalidKeyException: Exception of type ‘UnityEngine.AddressableAssets.InvalidKeyException’ was thrown. Could not load Asset with GUID=5a1f4b4f63fd3954eb4a00bac5d59194, Path=Assets/FMOD_Build/Desktop/Master.bank. Asset exists with main Type=UnityEditor.DefaultAsset, which is not assignable from the requested Type=UnityEngine.TextAsset
UnityEngine.AddressableAssets.AssetReference:LoadAssetAsync<UnityEngine.TextAsset> ()
FMODUnity.RuntimeManager:LoadBank (UnityEngine.AddressableAssets.AssetReference,bool,System.Action) (at Assets/Plugins/FMOD/src/RuntimeManager.cs:1016)
```
To be clear, I an using Addressable system for all assets in my game. Today someone recommended FMOD to me, so I am trying it out.