- Home /
Question by
GREYSETH · Feb 20, 2021 at 02:41 PM ·
audioparticlesaudiosourcenot working
Audio not playing
So, uh... I have this function here...
void EnemyIsDead()
{
crowdSound.Play();
}
and when the function is called, the audio doesn't play. I was just trying to find out why the audio wasnt playing, and i accidentally clicked this button then the audio played just fine, I then realized the audio only plays whenever the game is paused.
Is there any way to fix this?
this.png
(4.4 kB)
Comment
Answer by Dragunas · Feb 20, 2021 at 03:38 PM
did you made an plublic AudioClip in your script and assign it?
Yes, crowdSound
is a public AudioSource
variable. I originally used an AudioManager
to play sounds, but that didn't work so I tried using regular audio sources, but that didn't work either.