Wobbly Life Mod SDK
 
Loading...
Searching...
No Matches
Looping Sounds

Creating a looping event

Creating a looping sound is the same as a one-shot sound apart from two key differences. First in FMOD you need to set your sound to loop. There are multiple ways to do this but the simplest is to right click your looping audio file in FMOD and select ‘New Loop Region’.

Your sound will now have a blue bar along the top of it. You can drag this around if you wish. To test your sound loops properly you can play it in FMOD.

Once you’re happy, assign the Event to a Bank and build the Banks. Then make sure you load these Banks correctly in Unity.

The second difference a looping sound has to a one shot is in how you set up your emitter. For a looping sound you need to assign the ‘Stop Event’ dropdown menu as well otherwise your sound will just keep playing forever. Setting this to ‘Object Destroy’ is the safest option.

Now you can build your mod and test out your sound. For any more functionality you will need to code your own emitter.