MarkAsUsed
Bumps the timestamp of a cached file to be the current time.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
MarkAsUsed(string, int)
Bumps the timestamp of a cached file to be the current time.
public static bool MarkAsUsed(string url, int version)
Parameters
Returns
Type | Description |
|---|---|
| bool |
Remarks
This allows you to keep files in the cache even if you are not explicitly loading them. Returns true if the url is cached.
MarkAsUsed(string, Hash128)
Bumps the timestamp of a cached file to be the current time.
public static bool MarkAsUsed(string url, Hash128 hash)
Parameters
Returns
Type | Description |
|---|---|
| bool |
Remarks
This allows you to keep files in the cache even if you are not explicitly loading them. Returns true if the url is cached.
MarkAsUsed(CachedAssetBundle)
Bumps the timestamp of a cached file to be the current time.
public static bool MarkAsUsed(CachedAssetBundle cachedBundle)
Parameters
Returns
Type | Description |
|---|---|
| bool |
Remarks
This allows you to keep files in the cache even if you are not explicitly loading them. Returns true if the url is cached.