title: Unity Download Problem WWW and UnityWebRequest
body: <p>I am trying to download an asset bundle using a URL following is the code I am using:</p>
  
  <pre><code>WWW www = new WWW(assetsFilepath);
  
  while (!www.isDone)
  {
      Debug.Log("Downloading asset: " + www.progress);
      yield return null;
  }
  
  yield return www;
  
  if (www.error == null)               
  {                    
      Debug.Log("No Error");
      string tempPath = Path.Combine(Application.persistentDataPath, assetsFilename);
      FileStream cache = new FileStream(path, FileMode.Create);
      cache.Write(www.bytes, 0, www.bytes.Length);
      cache.Close();
  }                
  else
  {
      Debug.Log(www.error);
  }
  </code></pre>
  
  <p><code>Log Output: Downloading asset: 0</code></p>
  
  <p>I am aware that WWW request is obsolete, so I tried the following:</p>
  
  <pre><code>UnityWebRequest www = UnityWebRequestAssetBundle.GetAssetBundle(assetsFilepath);
  
  while (!www.isDone)
  {
      Debug.Log("Downloading asset: " + www.downloadProgress);
      yield return null;
  }
  
  yield return www.SendWebRequest();
  if (www.error == null)
  {
      Debug.Log("No Error");
      string tempPath = Path.Combine(Application.persistentDataPath, assetsFilename);
      FileStream cache = new FileStream(path, FileMode.Create);
      cache.Write(www.downloadHandler.data, 0, www.downloadHandler.data.Length);
      cache.Close();
  }
  else
  {
      Debug.Log(www.error);
  }
  </code></pre>
  
  <p><code>Log Output : Downloading asset: 0</code></p>
  
  <p>Unity: 2018.3.8f</p>
  
  <p>Write Permissions in Player Settings: External SD Card</p>
  
  <p>External Read and Write Permissions are granted</p>
  
  <p>This is the first time I am using UnityWebRequest, I am unable to find why I am getting this every time. Am I missing any step? Or any setting?</p>