Question by
snixer · Nov 15, 2019 at 06:05 AM ·
unity 5audiosource
How to tell if an audio source is not currently playing sound
Hey all. How do you figure out if an audio source is not currently playing ANY sound? Even if it is scheduled.
We are using PlayScheduled() and this method, even if there is no sound, sets the AudioSource.isplaying() to true. Anyway to call something like a AudioSource.IsPlayingSoundNow() ?
So, if a clip is scheduled, IsPlayingSoundNow() would return false until that clip is playing sound.
Comment
Your answer
Follow this Question
Related Questions
How to stop only one audio.clip and the rest keep paying ? 0 Answers
Play audio after enemy dies 1 Answer
Master Audio source volume control with slider 1 Answer
playing multiple sound on gameobject 1 Answer
GetComponent AudioSource not working 0 Answers