arafay
New Member
Posts: 24
Posts: 24
|
Post by arafay on Apr 4, 2016 7:51:43 GMT
Hi there,
How can i play audio files from Resurces.Load. There are 100s of audio files and i really dont want to spend time in dragging/dropping resource files on to MAA instance. Secondly, how can i get the complete event of a sound, For example in my game there is a voice, and once that voice is completed, i want to show some objects.
Please advise
Thanks
|
|
|
Post by DarkTonic Dev on Apr 4, 2016 16:14:18 GMT
I would actually advise you to use "preload audio data" = off instead of Resource files unless you need localization. It doesn't require that you set things up any different than Audio Clips and works the same way as Resources (saving memory when not playing). Also, there is a thread in the Unity forum that Resource files will be going away in a future version of Unity. You will need to drop the audio files into MA game object regardless of whether you're using Audio Clips or Resource files, but there is "bulk add" available if you lock the Inspector. To do something when sound finished, read the "PlaySoundResult" part here for an example: dl.dropboxusercontent.com/u/40293802/DarkTonic/MA_OnlineDocs/TriggeringAudioCoding.htm#PlaySoundResult
|
|