Loop sound in unity

(Guest) #1

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

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

(リチャード清水) #2

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.