Unity Stop All Audio

[Solved] Unity Stop All Audio | Shell - Code Explorer | yomemimo.com
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

Answers related to unity stop all audio

Code Explorer Popular Question For Shell