- Home /
Question by
raj231 · Feb 23, 2015 at 04:39 PM ·
gameobjectaudioaudiosourceaudioclipaudiolistener
How to load audio from server url
I need to load the audio url from server and now i'm using audiosource and AudioClip and load the audio from local but how can i assign the url to load
public AudioClip sound;
public AudioSource audioSource;
public void Play() {
audioSource.transform.position = transform.position;
audioSource.PlayOneShot(sound);
}
Please check the image and i assign the audio file to AudioClip in the inspector. Here i need to load the audio from url.
audiosource-inspector.jpg
(26.9 kB)
Comment
Answer by EmonKram · Feb 01, 2019 at 02:38 PM
Hi, Same question here. :( How we can do it? I raise this question on Unity Forum but to this moment without any answer. The link of question is: https://forum.unity.com/threads/put-audio-source-on-server.622147/ PLEASE if you found the answer, share it with us on the Unity Forum. Thanks alot. I hope find the answer. See you.