Caching.IsVersionCached Manual     Reference     Scripting  
Scripting > Runtime Classes > Caching
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.

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