示例#1
0
 public void Dispose()
 {
     if (this.disposeDownloadHandlerOnDispose)
     {
         DownloadHandler downloadHandler = this.downloadHandler;
         if (downloadHandler != null)
         {
             downloadHandler.Dispose();
         }
     }
     if (this.disposeUploadHandlerOnDispose)
     {
         UploadHandler uploadHandler = this.uploadHandler;
         if (uploadHandler != null)
         {
             uploadHandler.Dispose();
         }
     }
     this.InternalDestroy();
     GC.SuppressFinalize(this);
 }
 /// <summary>
 ///   <para>Returns a copy of the native-memory buffer interpreted as a UTF8 string.</para>
 /// </summary>
 /// <param name="www">A finished UnityWebRequest object with DownloadHandlerBuffer attached.</param>
 /// <returns>
 ///   <para>The same as DownloadHandlerBuffer.text</para>
 /// </returns>
 public static string GetContent(UnityWebRequest www)
 {
     return(DownloadHandler.GetCheckedDownloader <DownloadHandlerBuffer>(www).text);
 }
示例#3
0
 private static extern void INTERNAL_CALL_InternalCreateWebStream(DownloadHandler self, string url, ref Hash128 hash, uint crc);
示例#4
0
 internal void InternalCreateWebStream(string url, Hash128 hash, uint crc)
 {
     DownloadHandler.INTERNAL_CALL_InternalCreateWebStream(this, url, ref hash, crc);
 }
 public static AssetBundle GetContent(UnityWebRequest www)
 {
     return(DownloadHandler.GetCheckedDownloader <DownloadHandlerAssetBundle>(www).assetBundle);
 }
示例#6
0
 public static Texture2D GetContent(UnityWebRequest www)
 {
     return(DownloadHandler.GetCheckedDownloader <DownloadHandlerTexture>(www).texture);
 }
示例#7
0
 public UnityWebRequest(string url, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
 {
 }