- Home /
Question by
SinisterRainbow · May 27, 2013 at 09:03 AM ·
audioaudiosourceloadingaudioclip
Loading audioclips from a file
I have several oggs/ wavs in my resources folder - how do I assign these to an audio clip?
Note: I do not want to make it file-scoped in my scripts, i want it in my audio class with the access i give it.. aka, the string name of the file i want remembered or the audioclip itself.
Comment
Best Answer
Answer by SinisterRainbow · May 27, 2013 at 09:09 AM
Ahh.. always find answers 2 minutes after I post..:
audio.clip = (AudioClip)Resources.Load("sound1");
what do you mean "make it file-scoped in my script"...i am not a native,.