C# Класс UnityEngine.Networking.DownloadHandlerTexture

Наследование: DownloadHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GetData ( ) : byte[]

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

Приватные методы

Метод Описание
InternalGetData ( ) : byte[]
InternalGetTexture ( ) : Texture2D

Описание методов

DownloadHandlerTexture() публичный Метод

Default constructor.

public DownloadHandlerTexture ( ) : System
Результат System

DownloadHandlerTexture() публичный Метод

Constructor, allows TextureImporter.isReadable property to be set.

public DownloadHandlerTexture ( bool readable ) : System
readable bool Value to set for TextureImporter.isReadable.
Результат System

GetContent() публичный статический Метод

Returns the downloaded Texture, or null.

public static GetContent ( UnityWebRequest www ) : Texture2D
www UnityWebRequest A finished UnityWebRequest object with DownloadHandlerTexture attached.
Результат UnityEngine.Texture2D

GetData() защищенный Метод

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

protected GetData ( ) : byte[]
Результат byte[]