Guide to Sounds
In the inspector, you can adjust values like volume, pitch, and decibels. If your sound is supposed to be a screen sound, you will also need to select the UI option.
From here, you can also upload the sound to asset.party.
Saving this file via ctrl + s or clicking on Full Recompile will compile both the source sound and the sound event.
For looping sounds you will have to either:
- Place loop markers inside your sound file
- Left-click the source sound in the assets browser and select the loop checkbox in the inspector. This will only work with .wav and .mp3 files.
To play the sound in-game, you should use one of the static methods from the Sound class, using the name of the .sound asset type without the extension: