Playing Sound
Since a sound source just extends the functionality of an audio source, working with audio clips is essentially the same.
Getting An Audio Clip
If you've set up the USound Setup component correctly, and placed all of your audio clips in the right folders, you will be able to play audio clips by their short paths.
Playing/Stopping An Audio Clip
To play an audio clip, you would have to set it first.
Alternatively, you can find, set, and play an audio clip with the code below.
Stopping isn't any different from an audio source.
Adjusting Volume
It's recommended to use SoundSource.SetVolume
or SoundSource.SetVolumeScale
as the only ways to change the volume.
Other Properties
If you're wondering how to set other properties that you would find in an audio source, it's safe to use the audio source itself with SoundSource.audioSource
.
Last updated