Caching.maximumAvailableDiskSpace 最大可用磁盘空间
static var maximumAvailableDiskSpace : long
Description描述
The total number of bytes that can potentially be allocated for caching.
可能会被用于缓存,分配的字节总数。
This value can be set to a smaller number in order to limit the amount of disk space used by cached AssetBundles. The WebPlayer shared cache allows up to 50 MiB of cached AssetBundles. PC/Mac Standalone applications and iOS/Android applications have a limit of 4 GiB. WebPlayer applications that make use of a dedicated cache are limited to the number of bytes specified in the Caching license agreement. This property does not account for total available disk space. If a user's computer has less available disk space on the drive where the cache is located than maximumAvailableDiskSpace, the full amount of maximumAvailableDiskSpace will not be usable. Cache storage is allocated on an as-needed basis in order to minimize disk space usage.
此值可设置为一个较小的数字,以限制缓存AssetBundles使用的磁盘空间量。网络播放器共享缓存允许设置到50MiB来缓存资源包。PC/Mac独立版程序和iOS/Android程序限制为4GiB。网络播放器应用程序制作一个专用的缓存,是在缓存许可协议中指定字节数限制。这个属性不考虑总的可用磁盘空间。如果用户的计算机驱动器上的可用磁盘空间比maximumAvailableDiskSpace指定的还要少,maximumAvailableDiskSpace的满额量将无法使用。缓存的储存空间根据需要分配,以最大限度地减少磁盘空间的使用。