Answered
0
0

Hello Support,

As the title suggest, I’m trying to get the name of the instantiated event (FMOD.Studio.EventInstance) I receive from another method.

It is possible to have it?

I so some very old posts on how to do that in C++ but it looks like it’s not working on Unity’s integration.

Thanks,

Andrea

  • You must to post comments
Best Answer
1
0
  • You must to post comments
0
0

Thank you Cameron,

Worked without problems!

Here’s a snippet of C# for who wants to do the same:

public string GetInstantiatedEventName(FMOD.Studio.EventInstance instance)
{
    string result;
    FMOD.Studio.EventDescription description;

    instance.getDescription(out description);
    description.getPath(out result);

    // expect the result in the form event:/folder/sub-folder/eventName
    return result; 

}
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.