Question : unity stop all audio
Answered by : yasin
// 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(); } }
Source : | Last Update : Mon, 19 Jul 21
Question : stop sound in unity
Answered by : successful-sandpiper-zknwjxkunfm5
audioSource.Play();//Start playing
audioSource.Stop();//Stop playing
Source : | Last Update : Tue, 01 Dec 20