maximumAvailableStorageSpace
The maximum number of bytes that the AssetBundles stored in this cache can occupy.
読み終わるまでの所要時間 1 分最終更新 1日前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public long maximumAvailableStorageSpace { get; set; }
Remarks
The default value is , so by default only the free space on the storage device limits the size of the cache.
long.MaxValueUnity applies the limit when it downloads an AssetBundle into the cache. If the new AssetBundle doesn't fit in the space left under this limit, or in the free space on the storage device, Unity deletes AssetBundle versions from this cache, starting with the version whose last use is the oldest, until the new AssetBundle fits. A version's last use is the most recent time Unity downloaded it, loaded it from the cache, or you passed it to Caching.MarkAsUsed. Unity doesn't delete versions that are currently loaded, and doesn't delete content from other caches. If Unity can't free enough space, it loads the AssetBundle without storing it in the cache, and logs a warning.
Setting a smaller value doesn't delete any content immediately.