# Loop sound in unity

**URL:** <https://qa.fmod.com/t/loop-sound-in-unity/13439>\
**Category:** FMOD Studio\
**Created:** [September 15, 2017, 10:59am UTC](https://qa.fmod.com/t/loop-sound-in-unity/13439 "2017-09-15T10:59:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest7](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@Guest7](https://qa.fmod.com/u/Guest7)\
**Post date:** [September 15, 2017, 10:59am UTC](https://qa.fmod.com/t/loop-sound-in-unity/13439/1 "2017-09-15T10:59:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [September 18, 2017, 1:14am UTC](https://qa.fmod.com/t/loop-sound-in-unity/13439/2 "2017-09-18T01:14:22Z")

</div>

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
