Fmod Unity Loop

How to set and control loop of event in c#. Is there an option that lets me control if I want to loop audio or don’t want to loop it.

Hi,

There are a couple of ways you can do this:

A Loop region, explained in the Studio | Glossary, can be triggered with a parameter controlled in C# by the game. Allowing for the loop behavior of the event to be changed.

Another option may be creating a sound via a script, which will allow you to set the looping option in code but will require you to be a lot more involved in its setup and maintenance. Creating a sound is explained under Studio API | System. You can use the FMODUnity.RuntimeManager.CoreSystem to create the sound.

Hope this helps!