Getting a sound's ID from multiinstrument Shuffle or Random playback settings?

Hey fmodders!

I’m creating a test (on auditory roughness, for context) and it’d be useful to log the sound ID (presumably a float) so I can log that together with the user’s response to the question.

I can use a param and randomise from Unity to achieve something similar, but then I have to use the timeline, and it’d be easier to do this with actions. No biggie if it’s not possible.

Best

J

Hi,

You can get the name of the currently playing asset a few ways. The dead simplest way, if you don’t mind sorting through some logging information, would be to set FMOD for Unity’s logging level to “Log”, which will log information on the created sound, including the asset name.

A more sophisticated solution is to use an event callback on sound creation to get the name of the sound. You can see how to do so in Connor’s reply to a similar question here: