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

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

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

Метод Описание
DownloadHandlerAssetBundle ( string url, Hash128 hash, uint crc ) : System

Versioned constructor. Caches downloaded asset bundles.

DownloadHandlerAssetBundle ( string url, uint crc ) : System

Standard constructor for non-cached asset bundles.

DownloadHandlerAssetBundle ( string url, uint version, uint crc ) : System

Simple versioned constructor. Caches downloaded asset bundles.

GetContent ( UnityWebRequest www ) : AssetBundle

Returns the downloaded AssetBundle, or null.

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

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

Not implemented. Throws <a href="http:msdn.microsoft.comen-uslibrarysystem.notsupportedexception">NotSupportedException<a>.

GetText ( ) : string

Not implemented. Throws <a href="http:msdn.microsoft.comen-uslibrarysystem.notsupportedexception">NotSupportedException<a>.

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

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

Versioned constructor. Caches downloaded asset bundles.

public DownloadHandlerAssetBundle ( string url, Hash128 hash, uint crc ) : System
url string The nominal (pre-redirect) URL at which the asset bundle is located.
hash UnityEngine.Hash128 A hash object defining the version of the asset bundle.
crc uint A checksum to compare to the downloaded data for integrity checking, or zero to skip integrity checking.
Результат System

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

Standard constructor for non-cached asset bundles.

public DownloadHandlerAssetBundle ( string url, uint crc ) : System
url string The nominal (pre-redirect) URL at which the asset bundle is located.
crc uint A checksum to compare to the downloaded data for integrity checking, or zero to skip integrity checking.
Результат System

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

Simple versioned constructor. Caches downloaded asset bundles.

public DownloadHandlerAssetBundle ( string url, uint version, uint crc ) : System
url string The nominal (pre-redirect) URL at which the asset bundle is located.
version uint Current version number of the asset bundle at url. Increment to redownload.
crc uint A checksum to compare to the downloaded data for integrity checking, or zero to skip integrity checking.
Результат System

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

Returns the downloaded AssetBundle, or null.

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

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

Not implemented. Throws <a href="http:msdn.microsoft.comen-uslibrarysystem.notsupportedexception">NotSupportedException<a>.

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

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

Not implemented. Throws <a href="http:msdn.microsoft.comen-uslibrarysystem.notsupportedexception">NotSupportedException<a>.

protected GetText ( ) : string
Результат string