LoadFromCacheOrDownload() 개인적인 메소드

private LoadFromCacheOrDownload ( string url, Hash128 hash ) : WWW
url string
hash Hash128
리턴 WWW
예제 #1
0
        public static WWW LoadFromCacheOrDownload(string url, int version, [UnityEngine.Internal.DefaultValue("0")] uint crc)
        {
            Hash128 hash = new Hash128(0u, 0u, 0u, (uint)version);

            return(WWW.LoadFromCacheOrDownload(url, hash, crc));
        }
예제 #2
0
        public static WWW LoadFromCacheOrDownload(string url, Hash128 hash)
        {
            uint crc = 0u;

            return(WWW.LoadFromCacheOrDownload(url, hash, crc));
        }
예제 #3
0
        public static WWW LoadFromCacheOrDownload(string url, int version)
        {
            uint crc = 0u;

            return(WWW.LoadFromCacheOrDownload(url, version, crc));
        }
예제 #4
0
        /// <summary>
        ///   <para>Loads an AssetBundle with the specified version number from the cache. If the AssetBundle is not currently cached, it will automatically be downloaded and stored in the cache for future retrieval from local storage.</para>
        /// </summary>
        /// <param name="url">The URL to download the AssetBundle from, if it is not present in the cache. Must be '%' escaped.</param>
        /// <param name="version">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.</param>
        /// <param name="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.</param>
        /// <returns>
        ///   <para>A WWW instance, which can be used to access the data once the load/download operation is completed.</para>
        /// </returns>
        public static WWW LoadFromCacheOrDownload(string url, int version, [DefaultValue("0")] uint crc)
        {
            Hash128 hash = new Hash128(0U, 0U, 0U, (uint)version);

            return(WWW.LoadFromCacheOrDownload(url, hash, crc));
        }
예제 #5
0
 public static WWW LoadFromCacheOrDownload(string url, Hash128 hash)
 {
     return(WWW.LoadFromCacheOrDownload(url, hash, 0u));
 }
예제 #6
0
        public static WWW LoadFromCacheOrDownload(string url, int version, uint crc)
        {
            Hash128 hash = new Hash128(0u, 0u, 0u, (uint)version);

            return(WWW.LoadFromCacheOrDownload(url, hash, crc));
        }
예제 #7
0
 public static WWW LoadFromCacheOrDownload(string url, int version)
 {
     return(WWW.LoadFromCacheOrDownload(url, version, 0u));
 }