How to group events and limit simultaneous instances?

Hi,

I’m trying to manage events in FMOD Studio as a group, and I’m wondering how best to achieve this.

Should grouping and limiting the number of simultaneous instances be handled via the API, or is it something that needs to be set up in FMOD Studio when building the bank files?

What I’m specifically trying to do is group certain event instances together and limit the maximum number of events that can play simultaneously within that group.

I know this can be done using the Core API by creating a channel group and setting a max instance limit, but I haven’t found a way to do this using the Studio API.

Is there a recommended approach for this in the Studio API?

Also, which part of the documentation should I look at to better understand how to manage this kind of behavior?

Thanks in advance!

Sorry for the delayed response!

The primary way to do this is to route events together to the same bus in Studio, and then use bus instance limiting. If you need to do this limiting between arbitrary events that don’t share bus routing, then you’ll likely need to handle it at runtime via the API by tracking individual event instances and their playback states.

The primary docs sections would be those to do with stealing and virtualization: