I’m currently making sound fx for my game, everything was fine when I was using audio.PlayOneShot, but I need to loop one effect until the key is unpressed, but this is not working well, the sound clip is placed in the audio source of the player, however there is no sound. I found that the sound starts playing only if I start playing with the CPU volume Mixer, I cant hear the sound until I click the mixer, this works even if I dont change anything it only needs to open the mixer to work, how can I correct this issue.
here is the code
if (Fire==true){
audio.loop;
audio.clip=Aura;
audio.Play();
}
else{
audio.Stop();
}