コード例 #1
0
        /*
         *  display.AddComponent<RawImage>();
         *  display.AddComponent<AudioSource>();
         */
        private void OnDownloadedAudio(object sender, DownloadAudioClipEventArgs e)
        {
            Debug.Log("Audio Downloaded");
            int index = indexOfGuid(e.DownloadGuid);

            _display[index].AddComponent <AudioSource>();
            var eventArgs = e as DownloadAudioClipEventArgs;

            _display[index].GetComponent <AudioSource>().clip = eventArgs.Clip;
        }
コード例 #2
0
 private void OnAudioClipDownloaded(object sender,
                                    DownloadAudioClipEventArgs e)
 {
     Debug.Log(string.Format("Audio Received {0}", e.Clip.length));
     DisplayEventManager.OnDisplayAudioClip(e.Clip);
 }