Loop sound in unity

If I want to play a sound,I can do like this:
FMOD.Studio.EventInstance instance = RuntimeManager.CreateInstance(soundPath);
instance.start();

But,how do I loop a sound in unity with FMOD API?

Hi Doo,

If you’re using an FMOD Studio project with Unity, you would set the event to loop instead of trying to script it.

In the project, right click on the black logic track above the audio tracks and select “Add Loop Region”. You can then extend this loop region to the length of your event.

Thanks,
Richard

2 Likes