Caching.IsVersionCached 是否缓存的版本


static function IsVersionCached (url : string, version : int) : bool

Description描述

Checks if an AssetBundle is cached.

检查,如果一个资源包被缓存。

returns true if an AssetBundle with the url and version has previously been loaded using WWW.LoadFromCacheOrDownload() and is currently residing in the cache, and false otherwise.

如果一个带有url和使用WWW.LoadFromCacheOrDownload()被加载之前版本的资源包,并且当前存在缓存中,返回true。

if (Caching.IsVersionCached("http://myserver.com/bla.unity3d", 3))GUILayout.Button("Load Level");


,