Validating events


(Pablo Canaveris) #1

Hello guys! I was wandering how I could ask in Unity if an event of FMOD exists, and what is Fmodunity.EventNotFoundException class is for (couldn’t find the documentation about it).

Thanks!!


(Cameron Baron) #2

Do you want to know if an event is valid or if there is an instance of an event already created in the game?


(Pablo Canaveris) #3

I want to know if the event path is valid!


(Cameron Baron) #4

The easiest way I can think of to find out if an event path is valid is to call Studio::System::GetEvent. As long as the strings bank has been loaded it will be able to find it.

https://www.fmod.org/docs/content/generated/FMOD_Studio_System_GetEvent.html