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); }
private static extern void INTERNAL_CALL_InternalCreateWebStream(DownloadHandler self, string url, ref Hash128 hash, uint crc);
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); }
public static Texture2D GetContent(UnityWebRequest www) { return(DownloadHandler.GetCheckedDownloader <DownloadHandlerTexture>(www).texture); }
public UnityWebRequest(string url, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler) { }