public static LoadFromCacheOrDownload ( string url, int version, [ crc ) : |
||
url | string | The URL to download the AssetBundle from, if it is not present in the cache. Must be '%' escaped. |
version | int | Version of the AssetBundle. The file will only be loaded from the disk cache if it has previously been downloaded with the same version parameter. By incrementing the version number requested by your application, you can force Caching to download a new copy of the AssetBundle from url. |
crc | [ | An optional CRC-32 Checksum of the uncompressed contents. If this is non-zero, then the content will be compared against the checksum before loading it, and give an error if it does not match. You can use this to avoid data corruption from bad downloads or users tampering with the cached files on disk. If the CRC does not match, Unity will try to redownload the data, and if the CRC on the server does not match it will fail with an error. Look at the error string returned to see the correct CRC value to use for an AssetBundle. |
return |
WWW::LoadFromCacheOrDownload ( string url, |
|
WWW::LoadFromCacheOrDownload ( string url, |
|
WWW::LoadFromCacheOrDownload ( string url, int version ) : |