UnityEngine.Caching.MarkAsUsed C# (CSharp) Method

MarkAsUsed() public static method

Bumps the timestamp of a cached file to be the current time.

public static MarkAsUsed ( string url, int version ) : bool
url string
version int
return bool
        public static bool MarkAsUsed(string url, int version)
        {
            Hash128 hash = new Hash128(0, 0, 0, (uint) version);
            return MarkAsUsed(url, hash);
        }

Same methods

Caching::MarkAsUsed ( string url, Hash128 hash ) : bool

Usage Example

コード例 #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));
 }
All Usage Examples Of UnityEngine.Caching::MarkAsUsed