Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetContent(UnityWebRequest)

Returns the downloaded Texture, or null.
Read time 1 minuteLast updated 7 days ago

Definition

public static Texture2D GetContent(UnityWebRequest www)

Parameters

A finished UnityWebRequest object with DownloadHandlerTexture attached.

Returns

Type

Description

Texture2DThe same as DownloadHandlerTexture.texture

Remarks

A static function provided for convenience; equivalent to ((DownloadHandlerTexture)www.downloadHandler).texture.