C# Class UnityEngine.Networking.DownloadHandlerTexture

Inheritance: DownloadHandler
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
GetData ( ) : byte[]

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

Private Methods

Méthode Description
InternalGetData ( ) : byte[]
InternalGetTexture ( ) : Texture2D

Method Details

DownloadHandlerTexture() public méthode

Default constructor.

public DownloadHandlerTexture ( ) : System
Résultat System

DownloadHandlerTexture() public méthode

Constructor, allows TextureImporter.isReadable property to be set.

public DownloadHandlerTexture ( bool readable ) : System
readable bool Value to set for TextureImporter.isReadable.
Résultat System

GetContent() public static méthode

Returns the downloaded Texture, or null.

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

GetData() protected méthode

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

protected GetData ( ) : byte[]
Résultat byte[]