# Loading a bank from a file in Editor to show event list

**URL:** https://qa.fmod.com/t/loading-a-bank-from-a-file-in-editor-to-show-event-list/13437
**Category:** Unity
**Created:** [September 15, 2017, 9:53am UTC](https://qa.fmod.com/t/loading-a-bank-from-a-file-in-editor-to-show-event-list/13437 "2017-09-15T09:53:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RohanByjus](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@RohanByjus](https://qa.fmod.com/u/RohanByjus)
#### Post date: [September 15, 2017, 9:53am UTC](https://qa.fmod.com/t/loading-a-bank-from-a-file-in-editor-to-show-event-list/13437/1 "2017-09-15T09:53:49Z")

</div>

I want to allow a designer to select a bank from streaming assets, load the bank from it and then list out all the(only the) events inside it.

I intend to use FMOD.Studio.bank.getEventList() to get the list of events in the bank.

The problem is that RuntimeManager is not accessible outside of play mode. I thought I could use EditorUtils but it isn’t letting me use it because of its protection level.

My question,  
Is there a way to load a bank for editor Mode in an editor Script, or be able to access the FMOD.Studio.bank class from a file or  
If there is a better way to get the list of events from a bank than by using the bank class.

---

<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: [September 18, 2017, 1:41am UTC](https://qa.fmod.com/t/loading-a-bank-from-a-file-in-editor-to-show-event-list/13437/2 "2017-09-18T01:41:47Z")

</div>

Our EventManager.cs does exactly this in the UpdateCacheBank function. You should be able to use that as a guide, or modify it to suit your needs.

This question is very similar, the answer there may help: [http://www.fmod.org/questions/question/length-of-an-event-not-on-runtime-editor-scripts/#sabai-entity-content-46663](http://www.fmod.org/questions/question/length-of-an-event-not-on-runtime-editor-scripts/#sabai-entity-content-46663)
