Class Caching
Assembly: UnityEngine.dll
Syntax
public sealed class Caching
Properties
cacheCount
Declaration
public static int cacheCount { get; }
Property Value
compressionEnabled
Declaration
public static bool compressionEnabled { get; set; }
Property Value
currentCacheForWriting
Declaration
public static Cache currentCacheForWriting { get; set; }
Property Value
defaultCache
Declaration
public static Cache defaultCache { get; }
Property Value
expirationDelay
Declaration
[Obsolete("This property is only used for the current cache, use Cache.expirationDelay to access the expiration delay per cache.")]
public static int expirationDelay { get; set; }
Property Value
maximumAvailableDiskSpace
Declaration
[Obsolete("This property is only used for the current cache, use Cache.maximumAvailableStorageSpace to access the maximum available storage space per cache.")]
public static long maximumAvailableDiskSpace { get; set; }
Property Value
ready
Declaration
public static bool ready { get; }
Property Value
|
Improve this Doc
View Source
spaceAvailable
Declaration
[Obsolete("Please use use Cache.spaceOccupied to get used bytes per cache.")]
public static int spaceAvailable { get; }
Property Value
spaceFree
Declaration
[Obsolete("This property is only used for the current cache, use Cache.spaceFree to get unused bytes per cache.")]
public static long spaceFree { get; }
Property Value
spaceOccupied
Declaration
[Obsolete("This property is only used for the current cache, use Cache.spaceOccupied to get used bytes per cache.")]
public static long spaceOccupied { get; }
Property Value
|
Improve this Doc
View Source
spaceUsed
Declaration
[Obsolete("Please use use Cache.spaceOccupied to get used bytes per cache.")]
public static int spaceUsed { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddCache(String)
Declaration
public static Cache AddCache(string cachePath)
Parameters
Type |
Name |
Description |
String |
cachePath |
|
Returns
|
Improve this Doc
View Source
CleanCache()
Declaration
[Obsolete("This function is obsolete. Please use ClearCache. (UnityUpgradable) -> ClearCache()")]
public static bool CleanCache()
Returns
|
Improve this Doc
View Source
ClearAllCachedVersions(String)
Declaration
public static bool ClearAllCachedVersions(string assetBundleName)
Parameters
Type |
Name |
Description |
String |
assetBundleName |
|
Returns
ClearCache()
Declaration
public static bool ClearCache()
Returns
|
Improve this Doc
View Source
ClearCache(Int32)
Declaration
public static bool ClearCache(int expiration)
Parameters
Type |
Name |
Description |
Int32 |
expiration |
|
Returns
|
Improve this Doc
View Source
ClearCachedVersion(String, Hash128)
Declaration
public static bool ClearCachedVersion(string assetBundleName, Hash128 hash)
Parameters
Returns
|
Improve this Doc
View Source
ClearOtherCachedVersions(String, Hash128)
Declaration
public static bool ClearOtherCachedVersions(string assetBundleName, Hash128 hash)
Parameters
Returns
|
Improve this Doc
View Source
GetAllCachePaths(List<String>)
Declaration
public static void GetAllCachePaths(List<string> cachePaths)
Parameters
GetCacheAt(Int32)
Declaration
public static Cache GetCacheAt(int cacheIndex)
Parameters
Type |
Name |
Description |
Int32 |
cacheIndex |
|
Returns
GetCacheByPath(String)
Declaration
public static Cache GetCacheByPath(string cachePath)
Parameters
Type |
Name |
Description |
String |
cachePath |
|
Returns
|
Improve this Doc
View Source
GetCachedVersions(String, List<Hash128>)
Declaration
public static void GetCachedVersions(string assetBundleName, List<Hash128> outCachedVersions)
Parameters
|
Improve this Doc
View Source
GetVersionFromCache(String)
Declaration
[Obsolete("This function is obsolete and will always return -1. Use IsVersionCached instead.")]
public static int GetVersionFromCache(string url)
Parameters
Type |
Name |
Description |
String |
url |
|
Returns
|
Improve this Doc
View Source
IsVersionCached(String, Int32)
Declaration
[Obsolete("Please use IsVersionCached with Hash128 instead.")]
public static bool IsVersionCached(string url, int version)
Parameters
Returns
|
Improve this Doc
View Source
IsVersionCached(String, Hash128)
Declaration
public static bool IsVersionCached(string url, Hash128 hash)
Parameters
Returns
|
Improve this Doc
View Source
IsVersionCached(CachedAssetBundle)
Declaration
public static bool IsVersionCached(CachedAssetBundle cachedBundle)
Parameters
Returns
|
Improve this Doc
View Source
MarkAsUsed(String, Int32)
Declaration
[Obsolete("Please use MarkAsUsed with Hash128 instead.")]
public static bool MarkAsUsed(string url, int version)
Parameters
Returns
|
Improve this Doc
View Source
MarkAsUsed(String, Hash128)
Declaration
public static bool MarkAsUsed(string url, Hash128 hash)
Parameters
Returns
|
Improve this Doc
View Source
MarkAsUsed(CachedAssetBundle)
Declaration
public static bool MarkAsUsed(CachedAssetBundle cachedBundle)
Parameters
Returns
MoveCacheAfter(Cache, Cache)
Declaration
public static void MoveCacheAfter(Cache src, Cache dst)
Parameters
MoveCacheBefore(Cache, Cache)
Declaration
public static void MoveCacheBefore(Cache src, Cache dst)
Parameters
RemoveCache(Cache)
Declaration
public static bool RemoveCache(Cache cache)
Parameters
Type |
Name |
Description |
Cache |
cache |
|
Returns
Extension Methods