文档

Unity Engine

Unity Engine

GetContent(UnityWebRequest)

Returns the downloaded Texture, or null.
阅读时间1 分钟最后更新于 21 天前

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.