Caching

The Caching class lets you manage cached AssetBundles, downloaded using WWW.LoadFromCacheOrDownload.

See Also: WWW.LoadFromCacheOrDownload.

Class Variables
spaceFree

The number of currently unused bytes in the cache.

maximumAvailableDiskSpace

The total number of bytes that can potentially be allocated for caching.

spaceOccupied

Used disk space in bytes.

expirationDelay

The number of seconds that an AssetBundle may remain unused in the cache before it is automatically deleted.

enabled

Is Caching enabled?

ready

Is caching ready?

Class Functions
Authorize

(This is a WebPlayer-only function).

CleanCache

Delete all AssetBundle content that has been cached by the current application.

IsVersionCached

Checks if an AssetBundle is cached.

MarkAsUsed

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

SetNoBackupFlag

ResetNoBackupFlag