GetContent(UnityWebRequest)
Returns the downloaded Texture, or null.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestTextureModule
public static Texture2D GetContent(UnityWebRequest www)
Parameters
A finished UnityWebRequest object with DownloadHandlerTexture attached.
Returns
Type | Description |
|---|---|
| Texture2D | The same as DownloadHandlerTexture.texture |
Remarks
A static function provided for convenience; equivalent to ((DownloadHandlerTexture)www.downloadHandler).texture.