Question by
includestdafxh · Sep 13, 2021 at 02:52 AM ·
networkingwebrequest
data property of DownloadHandlerAudioClip always returns null
I used DownloadHandlerAudioClip and UnityWebRequest classes in order to get an audio from a url. audio gets downloaded properly and I can play it using audio source but I can't access raw downloaded bytes. data property returns null and nativeData is empty (its length is 0). even the get method of audio clip doesn't work as expected and the array I get from it is the same array I give to it without any change (all array members remain 0). why this is happening?
Comment