用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:caching:caching

Caching 缓存

class in UnityEngine

描述

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

缓存类能够让你管理调用WWW.LoadFromCacheOrDownload方法加载的被缓存的AssetBundles。

See Also: WWW.LoadFromCacheOrDownload.

也可以查看WWW.LoadFromCacheOrDownload

静态变量

compressionEnabledControls compression of cache data. Enabled by default.
控制缓存数据压缩。默认启用。
enableIs Caching enabled?
缓存是否启用
expirationDelayThe number of seconds that an AssetBundle may remain unused in the cache before it is automatically deleted.
在缓存中没有被使用的AssetBundle的过期时间,单位为秒。
maximumAvailableDiskSpace The total number of bytes that can potentially be allocated for caching
为缓存分配的总字节数
readyIs caching ready?
缓存是否就绪
spaceFreeThe number of currently unused bytes in the cache.
当前没有被使用的缓存的字节数。即缓存剩余的空间
spaceOccupiedUsed disk space in bytes.
当前已使用的缓存所占的磁盘空间

静态方法

Authorize(This is a WebPlayer-only function).
该方法只能用于WebPlayer
CleanCacheDelete all AssetBundle and Procedural Material content that has been c
script/unityengine/classes/caching/caching.txt · 最后更改: 2016/08/02 05:36 (外部编辑)