Is there a way to retrieve EventReferences from the BankLoader through code?

Hey.

So I want to avoid having to reference the EventReference in Unity Editor, and instead just access EventReferences of a specified bank through code.

So I thought I would be able to do something like:
bankLoader[index].GetEventReference()

But I found out that the bank is just a string.

Could you suggest any solutions to how I can access EventReferences through code at runtime?

I think there’s some confusion. The BankLoader and EventReference in Unity is just a way for the user to select a bank or event via the Unity editor UI. Both will actually just return the path string which is then used to load via the Studio API.

You can utilize Bank::getEventList() of a loaded bank to get a list of all event descriptions (that contain the event path) in your code.

https://www.fmod.com/resources/documentation-api?version=2.02&page=studio-api-bank.html#studio_bank_geteventlist