audio error
when i add audio is show me this error
public AudioClip[] atc1;
public AudioClip[] Run;
public void playSound(int clip)
{
audio.clip = audioClip[clip];
audia.Play();
}
Answer by studioAdam · Nov 19, 2016 at 09:05 PM
In the code above you've written audia.Play() not audio.Play() is that present in your code?
Regards.
Answer by josh15 · Nov 19, 2016 at 09:32 PM
ya thanks i feel so stupid for my fall please can learn my how to make the volume high when he get closer from player and sorry for my bad English
No problem @josh15. There are a few ways to achieve what you want to do, but try looking into the 'Rolloff $$anonymous$$ode' within the Audio Source' component.
Here's Unitys page: [1]: https://docs.unity3d.com/$$anonymous$$anual/class-AudioSource.html
Your answer
Follow this Question
Related Questions
Cracking at end of audio? 0 Answers
Need help: new sound isnt played correctly anymore 2 Answers
Second AudioClip won't play 0 Answers
Question About Unity Audio: How Compression Format and Load Type Interplay 0 Answers
Second AudioClip won't play 0 Answers