public static AssetBundle GetContent(UnityWebRequest www) { return(DownloadHandler.GetCheckedDownloader <DownloadHandlerAssetBundle>(www).assetBundle); }
/// <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); }
public static Texture2D GetContent(UnityWebRequest www) { return(DownloadHandler.GetCheckedDownloader <DownloadHandlerTexture>(www).texture); }