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.