C# Class UnityEngine.Networking.DownloadHandlerAssetBundle

Inheritance: DownloadHandler
Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
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>.

Method Details

DownloadHandlerAssetBundle() public method

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.
return System

DownloadHandlerAssetBundle() public method

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.
return System

DownloadHandlerAssetBundle() public method

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.
return System

GetContent() public static method

Returns the downloaded AssetBundle, or null.

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

GetData() protected method

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

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

GetText() protected method

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

protected GetText ( ) : string
return string