MarkAsUsed() public static method

public static MarkAsUsed ( string url, Hash128 hash ) : bool
url string
hash Hash128
return bool
コード例 #1
0
 public static bool MarkAsUsed(string url, Hash128 hash)
 {
     if (string.IsNullOrEmpty(url))
     {
         throw new ArgumentException("Input AssetBundle url cannot be null or empty.");
     }
     return(Caching.MarkAsUsed(url, "", hash));
 }
コード例 #2
0
 public static bool MarkAsUsed(CachedAssetBundle cachedBundle)
 {
     if (string.IsNullOrEmpty(cachedBundle.name))
     {
         throw new ArgumentException("Input AssetBundle name cannot be null or empty.");
     }
     return(Caching.MarkAsUsed("", cachedBundle.name, cachedBundle.hash));
 }
コード例 #3
0
        /// <summary>
        ///   <para>Bumps the timestamp of a cached file to be the current time.</para>
        /// </summary>
        /// <param name="url"></param>
        /// <param name="version"></param>
        public static bool MarkAsUsed(string url, int version)
        {
            Hash128 hash = new Hash128(0U, 0U, 0U, (uint)version);

            return(Caching.MarkAsUsed(url, hash));
        }
コード例 #4
0
 public static bool MarkAsUsed(string url, int version)
 {
     return(Caching.MarkAsUsed(url, new Hash128(0u, 0u, 0u, (uint)version)));
 }