# Use GUID's instead of .strings banks

**URL:** <https://qa.fmod.com/t/use-guids-instead-of-strings-banks/19037>\
**Category:** Unity\
**Tags:** unity, csharp\
**Created:** [July 21, 2022, 1:38pm UTC](https://qa.fmod.com/t/use-guids-instead-of-strings-banks/19037 "2022-07-21T13:38:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobinBouchez](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@RobinBouchez](https://qa.fmod.com/u/RobinBouchez)\
**Post date:** [July 21, 2022, 1:38pm UTC](https://qa.fmod.com/t/use-guids-instead-of-strings-banks/19037/1 "2022-07-21T13:38:02Z")

</div>

Hi,

I want to replace all my .strings bank with the GUID.txt file that FMOD builds, but I keep getting bankLoadExeption errors in Unity when I want to load in the GUID file.  
Does anyone know how to tell FMOD to look for events using GUIDs instead of the strings bank?

Thanks,

---

<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:** [July 25, 2022, 7:33am UTC](https://qa.fmod.com/t/use-guids-instead-of-strings-banks/19037/2 "2022-07-25T07:33:23Z")

</div>

Hi,

Could you please provide an example of how you use a GUID in your code so I can try to replicate the error?

---

<div class="post-metadata">

**Author:** ![RobinBouchez](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@RobinBouchez](https://qa.fmod.com/u/RobinBouchez)\
**Post date:** [July 26, 2022, 9:52am UTC](https://qa.fmod.com/t/use-guids-instead-of-strings-banks/19037/3 "2022-07-26T09:52:59Z")

</div>

Hi,  
So at first, I tried to load the GUIDs.txt in Unity in a bank loader, but the FMOD plugin didn’t support other file formats. So I renamed the GUIDs file to .guids.bank. and the GUIDs renamed file did load in. But FMOD still does not find the events.

 ![Unity Error](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/b/bafe0919b557a9cdf27b16fb687798c620ca9bdf.png)

Do I have to write a “FMOD Studio GUID Loader” like the bank loader script in unity? or is there an other simpler way to change out the .strings bank.

---

<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:** [July 27, 2022, 12:22am UTC](https://qa.fmod.com/t/use-guids-instead-of-strings-banks/19037/4 "2022-07-27T00:22:54Z")

</div>

Hi,

Thanks for the explanation, I believe I know what the issue is. When building the GUID file from FMOD Studio instead of selecting the `.txt` format you’ll want to use the `.cs` instead. This will allow you to access the `events` from within other `classes` when the asset is imported to Unity. I’ll explain how:

From FMOD Studio on the Toolbar → Scripts → FMOD Examples → Export GUID Headers → C# File. This will create a `.cs` file in your FMOD Projects directory. You will then want to import this file into your Unity project.  
From Unity right-clicking on the folder you want to import the file to then click the `Import New Asset` option and select the `.cs` file from your FMOD Project. Once the `.cs` file is imported you will be able to access its contents from any class in your project. Here is how:

```auto
	// Here I am creating and instance using the GUID from my .cs File 
	// FSPRO is the name space encapsulating the GUID classes 
	// Then follow it with what you are trying to access either a bank or an event 
	// Then the name of the event which GUID you want to retrieve  
	_instance = FMODUnity.RuntimeManager.CreateInstance(FSPRO.Event.Music_Level_02);
    // That is how you use the GUID file to access events

```

Hope this helps!

---

<div class="post-metadata">

**Author:** ![RobinBouchez](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@RobinBouchez](https://qa.fmod.com/u/RobinBouchez)\
**Post date:** [August 1, 2022, 8:37am UTC](https://qa.fmod.com/t/use-guids-instead-of-strings-banks/19037/5 "2022-08-01T08:37:05Z")

</div>

oh, yeah that makes more sense than just using a .txt file. Thanks for the quick response.
