public static MarkAsUsed ( string url, |
||
url | string | |
hash | ||
return | bool |
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)); }
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)); }
/// <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)); }
public static bool MarkAsUsed(string url, int version) { return(Caching.MarkAsUsed(url, new Hash128(0u, 0u, 0u, (uint)version))); }