stop sound in unity
audioSource.Play();//Start playing
audioSource.Stop();//Stop playing
stop sound in unity
audioSource.Play();//Start playing
audioSource.Stop();//Stop playing
unity stop all audio
// unity stop all sound by yasin
private var allAudioSources : AudioSource[];
function Awake() {
allAudioSources = FindObjectsOfType(AudioSource) as AudioSource[];
}
function StopAllAudio() {
for(var audioS : AudioSource in allAudioSources) {
audioS.Stop();
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us