C# Class UnityEngine.Networking.DownloadHandlerTexture

Inheritance: DownloadHandler
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
DownloadHandlerTexture ( ) : System

Default constructor.

DownloadHandlerTexture ( bool readable ) : System

Constructor, allows TextureImporter.isReadable property to be set.

GetContent ( UnityWebRequest www ) : Texture2D

Returns the downloaded Texture, or null.

Protected Methods

Method Description
GetData ( ) : byte[]

Called by DownloadHandler.data. Returns a copy of the downloaded image data as raw bytes.

Private Methods

Method Description
InternalGetData ( ) : byte[]
InternalGetTexture ( ) : Texture2D

Method Details

DownloadHandlerTexture() public method

Default constructor.

public DownloadHandlerTexture ( ) : System
return System

DownloadHandlerTexture() public method

Constructor, allows TextureImporter.isReadable property to be set.

public DownloadHandlerTexture ( bool readable ) : System
readable bool Value to set for TextureImporter.isReadable.
return System

GetContent() public static method

Returns the downloaded Texture, or null.

public static GetContent ( UnityWebRequest www ) : Texture2D
www UnityWebRequest A finished UnityWebRequest object with DownloadHandlerTexture attached.
return UnityEngine.Texture2D

GetData() protected method

Called by DownloadHandler.data. Returns a copy of the downloaded image data as raw bytes.

protected GetData ( ) : byte[]
return byte[]