C# Class UnityEngine.Networking.DownloadHandlerAssetBundle

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

Méthodes publiques

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

Méthodes protégées

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

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.
Résultat System

DownloadHandlerAssetBundle() public méthode

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.
Résultat System

DownloadHandlerAssetBundle() public méthode

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.
Résultat System

GetContent() public static méthode

Returns the downloaded AssetBundle, or null.

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

GetData() protected méthode

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

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

GetText() protected méthode

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

protected GetText ( ) : string
Résultat string